hook

inline fun hook(crossinline f: SessionHook): ActionBuilder

Alias for CoreDsl.exec.

For a Kotlin lambda without an explicit parameter, the correct overload, that takes java.util.function.Function, cannot be resolved,

because the other possibility, the ActionBuilder, is also a SAM type.

This inline function emits a scala.Function1, it may be more efficient.