Interface CallFlowToOn

  • All Superinterfaces:
    HostResult
    All Known Subinterfaces:
    CallFlowToArgs, CallFlowToRecv

    public interface CallFlowToOn
    extends HostResult
    Call flow step to bind a return val handler.

    If an instance of this interface is returned as the result of the host fun action, the fun is called as a tail call.

    If you want to use the result of the fun call, provide a handler via on(ThrowingFunction2).

    • Method Detail

      • on

        HostResult on​(ThrowingFunction2<? super HostContext,​? super Val,​? extends HostResult> retValHandler)
        Makes a non-tail call HostResult which continues to the handler when the fun call returns the result.
        Parameters:
        retValHandler - the handler of the return val.
        Returns:
        a non-tail call result.