[]previous and next page

Writes flush in a microtask

An effect that reads a signal runs once for any number of writes made in the same synchronous turn.

For agentsUpdated

An effect that reads a signal runs once for any number of writes made in the same synchronous turn. Nothing runs until the turn ends.

The microtask is requested by the first write that has observers. A write to a signal nobody reads schedules nothing.