Class Sync<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      Sync()
      Constructs a new Sync continuation that awaits a value of type T.
    • Method Summary

      Modifier and Type Method Description
      T await()
      Waits an unbounded amount of time for this Sync continuation to complete.
      T await​(long timeout)
      Waits a maximum of timeout milliseconds for this Sync continuation to complete.
      void bind​(T value)
      Invoked when the asynchronous operation completes with a value.
      boolean block()  
      boolean isReleasable()  
      void trap​(Throwable error)
      Invoked when the asynchronous operation fails with an error.
    • Constructor Detail

      • Sync

        public Sync()
        Constructs a new Sync continuation that awaits a value of type T.