ResumeId

class ResumeId<C, R, S : Any>(executor: StatefulSagaExecutor<C, R, S>, id: String)

Intermediate value produced by saga resume "id".

Holds the executor and run identifier string until the with connective supplies the context and triggers the actual resume call.

Parameters

C

The saga context type.

R

The saga result type.

S

The saga state type.

Constructors

Link copied to clipboard
constructor(executor: StatefulSagaExecutor<C, R, S>, id: String)

Functions

Link copied to clipboard
infix suspend fun <C, R, S : Any> ResumeId<C, R, S>.with(ctx: C): ResumeOutcome<R, S>

Second half of the saga resume "id" with ctx DSL chain.