Skip to content

EXTENSION

RenderContext

Methods

makeSink(of:onEvent:)

makeOutputSink()

Generates a sink that allows sending the Workflow’s output wrapped in an AnyWorkflowAction, allowing bypassing an intermediate action.

makeStateMutationSink()

Creates StateMutationSink.

To create a sink:

let stateMutationSink = context.makeStateMutationSink()

To mutate State on an event:

stateMutationSink.send(\State.value, value: 10)