mirror of
https://github.com/c-cube/nanoev.git
synced 2025-12-05 19:00:35 -05:00
10 lines
341 B
OCaml
10 lines
341 B
OCaml
val setup : Nanoev.t -> unit
|
|
(** Install this event loop in a background thread *)
|
|
|
|
val shutdown : unit -> unit
|
|
(** Shutdown background thread, assuming {! is_setup} returns [true] *)
|
|
|
|
val with_setup : Nanoev.t -> (unit -> 'a) -> 'a
|
|
|
|
val is_setup : unit -> bool
|
|
(** [is_setup()] is [true] iff a background thread is running a nanoev loop *)
|