aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/communication/async/AsyncUtils.java
blob: 94f8d51f7342ae7c3fc45a35d643f9eb7da376c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright Vespa.ai. 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) {}
        }
    }

}