package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create : unit -> t
val run : t -> 'a Import.Fiber.t -> 'a
type thread
type 'a task
val create_thread : t -> thread
val await : 'a task -> ('a, [ `Exn of Stdune.Exn.t | `Canceled ]) result Import.Fiber.t
val await_no_cancel : 'a task -> 'a Stdune.Or_exn.t Import.Fiber.t
val cancel_task : 'a task -> unit Import.Fiber.t
val async : thread -> (unit -> 'a) -> 'a task
val stop : thread -> unit
type timer
val create_timer : t -> delay:float -> timer
val set_delay : timer -> delay:float -> unit
val detach : ?name:string -> t -> (unit -> unit Import.Fiber.t) -> unit Import.Fiber.t
val schedule : timer -> (unit -> 'a Import.Fiber.t) -> ('a, [ `Cancelled ]) result Import.Fiber.t
val cancel_timer : timer -> unit
val scheduler : unit -> t
val report : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.