Class Promise.Completable<S>

    • Constructor Detail

      • Completable

        public Completable()
    • Method Detail

      • succeed

        public void succeed​(S result)
        Description copied from interface: Promise

        Callback to invoke when the operation succeeds.

        Specified by:
        succeed in interface Promise<S>
        Parameters:
        result - the result
        See Also:
        Promise.fail(Throwable)
      • fail

        public void fail​(Throwable failure)
        Description copied from interface: Promise

        Callback to invoke when the operation fails.

        Specified by:
        fail in interface Promise<S>
        Parameters:
        failure - the operation failure