blob: 64ca05fe94592d054e5e4b3c16d0530b280b160c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright 2017 Yahoo Holdings. 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) {}
}
}
}
|