Skip to main content

Function: bindActivityHandler()

bindActivityHandler(prototype, methodName, instance): (...args) => unknown

Defined in: src/error-mapping/non-retryable.decorator.ts:61

Bind an activity method to its instance and carry its @NonRetryable() options onto the bound function, which is what the worker registers (a bound function loses the metadata).

Parameters​

prototype​

Record<string, unknown>

methodName​

string

instance​

unknown

Returns​

(...args) => unknown