Skip to main content Link Search Menu Expand Document (external link)

WorkflowRuntimeMessage overview

Added in v1.0.0


Table of contents


utils

CheckStatus (class)

Signature

export declare class CheckStatus<A, E>

Added in v1.0.0

RequestComplete (class)

Signature

export declare class RequestComplete<A, E>

Added in v1.0.0

RequestFork (class)

Signature

export declare class RequestFork

Added in v1.0.0

RequestJoin (class)

Signature

export declare class RequestJoin

Added in v1.0.0

RequestYield (class)

Signature

export declare class RequestYield

Added in v1.0.0

WorkflowRuntimeMessage (type alias)

Signature

export type WorkflowRuntimeMessage<A, E> =
  | RequestJoin
  | RequestFork
  | RequestYield
  | RequestComplete<A, E>
  | CheckStatus<A, E>

Added in v1.0.0

match

Signature

export declare function match<A, E, B, C = B, D = C, F = D, G = F>(
  fa: WorkflowRuntimeMessage<A, E>,
  fns: {
    onRequestFork: (message: RequestFork) => B
    onRequestJoin: (message: RequestJoin) => C
    onRequestYield: (message: RequestYield) => D
    onRequestComplete: (message: RequestComplete<A, E>) => F
    onCheckStatus: (message: CheckStatus<A, E>) => G
  }
)

Added in v1.0.0