package eio

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module type Pi.MGRSource

type t
val run : t -> (cancelled:exn Promise.t -> 'a) -> 'a

run t fn runs fn ~cancelled in a new domain.

If the calling fiber is cancelled, cancelled becomes resolved to the Cancel.Cancelled exception. fn should cancel itself in this case.

val run_raw : t -> (unit -> 'a) -> 'a