package lsp

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Fiber_unix.SchedulerSource

Sourcetype t
Sourceval create : unit -> t
Sourcetype run_error =
  1. | Never
  2. | Abort_requested
  3. | Exn of Stdune.Exn.t
Sourceval run_result : t -> 'a Fiber.t -> ('a, run_error) Stdune.Result.t
Sourceval run : t -> 'a Fiber.t -> 'a
Sourcetype thread
Sourcetype 'a task
Sourceval create_thread : t -> thread
Sourceval await : 'a task -> ('a, [ `Exn of Stdune.Exn.t | `Canceled ]) Stdune.Result.t Fiber.t
Sourceval await_no_cancel : 'a task -> 'a Stdune.Or_exn.t Fiber.t
Sourceval cancel_task : 'a task -> unit Fiber.t
Sourceval async : thread -> (unit -> 'a) -> ('a task, [ `Stopped ]) Stdune.Result.t
Sourceval async_exn : thread -> (unit -> 'a) -> 'a task
Sourceval stop : thread -> unit
Sourcetype timer
Sourceval create_timer : t -> delay:float -> timer
Sourceval set_delay : timer -> delay:float -> unit
Sourceval schedule : timer -> (unit -> 'a Fiber.t) -> ('a, [ `Cancelled ]) Stdune.Result.t Fiber.t
Sourceval cancel_timer : timer -> unit Fiber.t
Sourceval cancel_timers : t -> unit Fiber.t
Sourceval scheduler : unit -> t
Sourceval abort : t -> unit
OCaml

Innovation. Community. Security.