Loading… If this message stays, your browser isn't supported. These examples need Safari 16.4 or later, or a recent Chrome, Edge or Firefox.
isoloop
GitHub

Basic

The smallest example: four isolates, each with its own surface, on three event loops. A and B have a worker each; C and D share one, a pool. They talk only through topics on the bus, which runs in a worker of its own. Every isolate has a Block and a Crash button, so you can break any part and watch what keeps running. The landing page runs it live.

C and D read A's count, so they tick when A does. When A is down they wait for its next record; their own work carries on.

main thread: -- fps

An isolate that crashes more than 3 times within a minute is marked failed, and the kernel stops restarting it.

Own workers: one event loop each

Pool "shared": one worker, one event loop

A pool is a unit of failure: block C and D stalls with it, and both restart together.