mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-18 00:26:43 -05:00
17 lines
418 B
OCaml
17 lines
418 B
OCaml
(** The unique name of a fiber.
|
|
|
|
Each fiber has a unique handle that can be used to
|
|
refer to it in maps or sets. *)
|
|
|
|
type t = private int
|
|
(** Unique, opaque identifier for a fiber. *)
|
|
|
|
val equal : t -> t -> bool
|
|
val compare : t -> t -> int
|
|
val hash : t -> int
|
|
|
|
val generate_fresh : unit -> t
|
|
(** Generate a fresh, unique identifier *)
|
|
|
|
module Set : Set.S with type elt = t
|
|
module Map : Map.S with type key = t
|