Interface NeoQueue.IAsyncErrFirstCb<T>

All Known Implementing Classes:
NeoQueue.AsyncCallback
Enclosing class:
NeoQueue<T,V>

public static interface NeoQueue.IAsyncErrFirstCb<T>
Error-first continuation used by NeoQueue.ITaskHandler. Like Asyncc.IAsyncCallback but with Object as the error type because the pre-existing public API of NeoQueue pre-dates the typed-error parameter.

The conventional parameter name in user code is c, short for continuation.

Since:
0.2.4 (success / fail defaults added)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    done(Object e, T v)
    Canonical error-first call: pass (null, value) on success or (err, null) on failure.
    default void
    Shorthand for done(e, null).
    default void
    Shorthand for done(null, v).
  • Method Details

    • done

      void done(Object e, T v)
      Canonical error-first call: pass (null, value) on success or (err, null) on failure.
    • success

      default void success(T v)
      Shorthand for done(null, v).
    • fail

      default void fail(Object e)
      Shorthand for done(e, null).