MCPcopy Create free account
hub / github.com/deanrad/rxfx / ProcessLifecycleCallbacks

Interface ProcessLifecycleCallbacks

effect/src/types.ts:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94/** Callbacks corresponding to lifecycle events of a process. */
95export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected