-
public class WaiterWithValue<TType extends Object>An abstraction which allows for a suspending function to coordinate the completion of an event, where the event can pass data.
-
-
Constructor Summary
Constructors Constructor Description WaiterWithValue()
-
Method Summary
Modifier and Type Method Description final TTypewaitForWake()Suspend the caller until wake has been called at least one time. final Unitwake(TType value)Wake the suspending function that has called waitForWake. -
-
Method Detail
-
waitForWake
final TType waitForWake()
Suspend the caller until wake has been called at least one time.
-
wake
final Unit wake(TType value)
Wake the suspending function that has called waitForWake.
- Parameters:
value- The data to be returned by the waitForWake.
-
-
-
-