public class ClockUtilsKt
Modifier and Type | Method and Description |
---|---|
static boolean |
awaitWithDeadline(java.time.Clock $receiver,
java.time.Instant deadline,
java.util.concurrent.Future<?> future)
Wait until the given Future is complete or the deadline is reached, with support for
class MutableClock implementations
used in demos or testing. This will substitute a Fiber compatible Future so the current Strand is not blocked. |
public static boolean awaitWithDeadline(java.time.Clock $receiver, java.time.Instant deadline, java.util.concurrent.Future<?> future)
Wait until the given Future is complete or the deadline is reached, with support for class MutableClock
implementations
used in demos or testing. This will substitute a Fiber compatible Future so the current Strand is not blocked.
class MutableClock
,
Strand