withForwardHooks

inline fun <I, O> withForwardHooks(ctx: ExecutionContext?, module: ModuleNode, input: I, forward: () -> O): O(source)

Utility to safely dispatch forward hooks if a context with hooks is provided.