Closed floriandejonckheere closed 1 year ago
The documentation is not up to date. The current implementation does not allow setting a watcher. You can instead monitor a fiber manually by calling Fiber#monitor
, e.g.:
f = spin { sleep 1 }
f.monitor(Fiber.current)
msg = Fiber.current.monitor_mailbox.shift
According to the documentation, it's possible to set up a watcher when supervising child fibers. However, I found that the supervision code ignores the
watcher:
argument. Was this functionality removed? The documentation also doesn't mentionon_done:
andon_error:
.