Interface HostFunReaction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HostFunReaction
The reaction of a host fun on the result of invocation.
  • Method Summary

    Modifier and Type
    Method
    Description
    reaction(HostContext ctx, Val calleeResult)
    Performs reaction on the result of invocation.
  • Method Details

    • reaction

      HostResult reaction(HostContext ctx, Val calleeResult) throws Throwable
      Performs reaction on the result of invocation.
      Parameters:
      ctx - the context of the host fun.
      calleeResult - the result of the invocation.
      Returns:
      the result value, or the call flow.
      Throws:
      Throwable - any exception