Skip to content

Examples Catalog

Shared building blocks

Most examples reuse three small helper areas instead of repeating setup
code:

  • Items — fake item types (Event, Sensor, ShutdownCommand, Timer) for the examples to send and pool. Not
    production code.

  • Hooks — sample PoolHooks implementations (AlwaysCreateHooks,
    CappedPoolHooks) used by the pool examples.

  • Helpers — generic test glue (expect, clearList), not part of the library API.

How to...

Grouped by topic:

  • PolyNode — define a type, transfer via Slot, dispatch by tag.

  • Mailbox — send/receive, OOB, batches, shutdown.

  • Pool — get/put, seeding, teardown, fan-in/fan-out.
  • Io — Select, Group, Future — event loops, cancellation, awaiting futures directly.

Flow

  • Master compositions — bigger, cross-layer examples: full Masters combining Mailbox + Pool + Select/Group.