Interface Cont<T>

  • All Known Subinterfaces:
    Call<T>, Stay<T>
    All Known Implementing Classes:
    Sync

    public interface Cont<T>
    Continuation of an asynchronous operation. The bind(T) method gets called when the asynchronous operation completes with a value; the trap(Throwable) method gets called when the asynchronous operation fails with an exception.
    See Also:
    Conts, Call, Sync
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void bind​(T value)
      Invoked when the asynchronous operation completes with a value.
      void trap​(Throwable error)
      Invoked when the asynchronous operation fails with an error.
    • Method Detail

      • bind

        void bind​(T value)
        Invoked when the asynchronous operation completes with a value.
      • trap

        void trap​(Throwable error)
        Invoked when the asynchronous operation fails with an error.