Picos_structured.BundleSourceA dynamic bundle of fibers guaranteed to be joined at the end.
Bundles allow you to conveniently structure or delimit concurrency into nested scopes. After a bundle returns or raises an exception, no fibers forked to the bundle remain.
An unhandled exception, or error, within any fiber of the bundle causes all the fibers forked to the bundle to be canceled and the bundle to raise the exception.
Represents a bundle of fibers.
terminate bundle cancels all the forked fibers using the Terminate exception. After terminate has been called, no new fibers can be forked to the bundle.
The optional callstack argument specifies the number of callstack entries to capture with the Terminate exception. The default is 0.
âšī¸ Calling terminate at the end of a bundle can be a convenient way to cancel any background fibers started by the bundle.
âšī¸ Calling terminate does not raise the Terminate exception, but blocking operations after terminate will raise the exception to propagate cancelation unless propagation of cancelation is forbidden.
fork bundle action is equivalent to fork_as_promise bundle action |> ignore.