eio
Domain_manager.t
eio.core
eio.mock
eio.unix
eio.utils
method virtual run_raw : 'a. (unit -> 'a) -> 'a
method virtual run : 'a. (cancelled:exn Promise.t -> 'a) -> 'a
t#run fn runs fn ~cancelled in a new domain.
t#run fn
fn ~cancelled
If the calling fiber is cancelled, cancelled becomes resolved to the Cancel.Cancelled exception. fn should cancel itself in this case.
cancelled
Cancel.Cancelled
fn