Interface ProcessLifecycleCallbacks<TRequest, TNext, TError>

A dictionary of callbacks corresponding to lifecycle events of a process.

interface ProcessLifecycleCallbacks<TRequest, TNext, TError> {
    cancel: (() => void);
    canceled: (() => void);
    complete: (() => void);
    error: ((err) => void);
    finalized: (() => void);
    next: ((next) => void);
    request: ((r) => void);
    started: (() => void);
}

Type Parameters

  • TRequest
  • TNext
  • TError

Properties

cancel: (() => void)

cancels the current invocation

Type declaration

    • (): void
    • Returns void

canceled: (() => void)

an invocation was canceled by a subscriber

Type declaration

    • (): void
    • Returns void

complete: (() => void)

an invocation has terminated successfully

Type declaration

    • (): void
    • Returns void

error: ((err) => void)

an invocation has terminated with an error

Type declaration

    • (err): void
    • Parameters

      Returns void

finalized: (() => void)

an invocation concluded, in any fashion

Type declaration

    • (): void
    • Returns void

next: ((next) => void)

an invocation has produced data

Type declaration

    • (next): void
    • Parameters

      Returns void

request: ((r) => void)

invokes the service

Type declaration

    • (r): void
    • Parameters

      Returns void

started: (() => void)

an invocation has begun

Type declaration

    • (): void
    • Returns void