Skip to main content
Version: Next

makeContextAwareFunction

makeContextAwareFunction(env, fn, finalizer?): R

Returns a context-aware version of the given function.

ParameterTypeOptionalDescription
envCommandKitEnvironmentThe commandkit environment data.
fnRThe target function.
finalizerFAn optional finalizer function to run after the target function. This function will be context-aware.