Companion

Functions

Link copied to clipboard
fun <Func : Function<Any?>> bind(fn: Func): Func

Binds the given function to the current execution context.

Link copied to clipboard

Captures the current execution context and returns a function that accepts a function as an argument. Whenever the returned function is called, it calls the function passed to it within the captured context.