aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/communication/async/AsyncUtils.java
blob: d83daff29e750fa19605db75f329d5274e1ca4c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.communication.async;

public class AsyncUtils {

    public static void waitFor(AsyncOperation<?> op) {
        while (!op.isDone()) {
            try{ Thread.sleep(1); } catch (InterruptedException e) {}
        }
    }

}