Interface: ActivityInboundCallsInterceptor
worker.ActivityInboundCallsInterceptor
Implement any of these methods to intercept Activity inbound calls
Implemented by
Properties
execute
• Optional
execute: (input
: ActivityExecuteInput
, next
: OmitLastParam
<(input: ActivityExecuteInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise
<unknown
>
Called when Activity function is executed
Type declaration
▸ (input
, next
): Promise
<unknown
>
Called when Activity function is executed
Parameters
Name | Type |
---|---|
input | ActivityExecuteInput |
next | OmitLastParam <(input: ActivityExecuteInput, next: OmitLastParam<...>) => Promise<unknown>> |
Returns
Promise
<unknown
>
result of Activity function