Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / sequence

Worker creation and destruction

Family: sequence. Status: Implemented.

Explicit participant lifetime around a short background job.

Scope: Implemented Mermaid sequence syntax and illustrative playback. Calls are not executed.

Preview

Worker creation and destruction preview
Worker creation and destruction preview (dark)

Source

sequence-worker-lifetime.mmd

text/plain

sequenceDiagram
participant API
create participant Worker
API->>Worker: Start job
Worker->>Worker: Process batch
destroy Worker
Worker-->>API: Completed

Download source: sequence-worker-lifetime.mmd

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.