FiberMap[K, A, E]: at most one fiber per key, inside one scope.
Running or setting a fiber under a key that holds another interrupts the
old one (only_if_missing=True keeps it and interrupts the newcomer
instead). Each fiber leaves the map when it completes; replaced fibers stay
owned until they finish interrupting, so closing the scope waits for their
cleanup too. join fails with the first member failure; interrupts only
count with propagate_interruption=True, and never those the map sends
itself (replacing, remove, clear).
runtime(*tags) returns a runner that forks root fibers into the map
from plain code, as Effect's FiberMap.runtime.
Classes#
On This Page
Classes