bind

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

Binds the given function to execute to this AsyncResource's scope.

Since

v14.8.0, v12.19.0

Parameters

fn

The function to bind to the current AsyncResource.