| 93 | |
| 94 | /** Callbacks corresponding to lifecycle events of a process. */ |
| 95 | export interface ProcessLifecycleCallbacks<TRequest, TNext, TError = Error> { |
| 96 | /** invokes the effects */ |
| 97 | request: (r: TRequest) => void; |
| 98 | /** an invocation has begun */ |
| 99 | started: (r: TRequest) => void; |
| 100 | /** an invocation has produced data */ |
| 101 | response: (next: TNext) => void; |
| 102 | /** an invocation has terminated with an error */ |
| 103 | error: (err: TError) => void; |
| 104 | /** an invocation has terminated successfully */ |
| 105 | complete: (r: TRequest) => void; |
| 106 | /** an invocation was canceled by a subscriber */ |
| 107 | canceled: (r: TRequest) => void; |
| 108 | /** an invocation concluded, in any fashion */ |
| 109 | finalized: () => void; |
| 110 | } |
nothing calls this directly
no outgoing calls
no test coverage detected