-
public final class WaiterAn abstraction which allows for a suspending function to coordinate the completion of an event.
-
-
Constructor Summary
Constructors Constructor Description Waiter()
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>waitForWake()Suspend the caller until wake has been called at least one time. final Unitwake()Wake the suspending function that has called waitForWake. -
-
Method Detail
-
waitForWake
final <ERROR CLASS> waitForWake()
Suspend the caller until wake has been called at least one time.
-
wake
final Unit wake()
Wake the suspending function that has called waitForWake.
-
-
-
-