package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create : unit -> t
type run_error =
  1. | Never
  2. | Abort_requested
  3. | Exn of Stdune.Exn.t
val run_result : t -> 'a Fiber.t -> ('a, run_error) Stdune.Result.t
val run : t -> 'a Fiber.t -> 'a
type thread
type 'a task
val create_thread : t -> thread
val await : 'a task -> ('a, [ `Exn of Stdune.Exn.t | `Canceled ]) Stdune.Result.t Fiber.t
val await_no_cancel : 'a task -> 'a Stdune.Or_exn.t Fiber.t
val cancel_task : 'a task -> unit Fiber.t
val async : thread -> (unit -> 'a) -> ('a task, [ `Stopped ]) Stdune.Result.t
val async_exn : 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 schedule : timer -> (unit -> 'a Fiber.t) -> ('a, [ `Cancelled ]) Stdune.Result.t Fiber.t
val cancel_timer : timer -> unit Fiber.t
val cancel_timers : t -> unit Fiber.t
val scheduler : unit -> t
val abort : t -> unit
OCaml

Innovation. Community. Security.