Module Fiber.Handle

Existential fibers

type 'a fiber := 'a t
type t

The type for exisential fibers. This is Fiber.t with the 'a hidden.

val self : unit -> t

self is a handle to the executing fiber.

val id : t -> Id.t

id h is the unique identifier of the fiber.

val equal : t -> t -> bool

equal tests fibers for equality.

val compare : t -> t -> int

compare is a total order on fibers compatible with equal.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats exisential fibers.