bind

fun <Func : Function<Any?>> bind(fn: Func): Func(source)

Binds the given function to the current execution context.

Since

v19.8.0

Return

A new function that calls fn within the captured execution context.

Parameters

fn

The function to bind to the current execution context.