Package 

Class WaiterWithValue


  • 
    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.

    • Method Summary

      Modifier and Type Method Description
      final TType waitForWake() Suspend the caller until wake has been called at least one time.
      final Unit wake(TType value) Wake the suspending function that has called waitForWake.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaiterWithValue

        WaiterWithValue()