makeContextAwareFunction
makeContextAwareFunction(env, fn, finalizer?): R
Returns a context-aware version of the given function.
Parameter | Type | Optional | Description |
---|---|---|---|
env | CommandKitEnvironment | ❌ | The commandkit environment data. |
fn | R | ❌ | The target function. |
finalizer | F | ✅ | An optional finalizer function to run after the target function. This function will be context-aware. |