package ecaml

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

Module Ecaml.Sync_or_asyncSource

Sourcetype ('a, 'b) t =
  1. | Sync : ('a, 'a) t
  2. | Async : ('a, 'a Async_kernel.Deferred.t) t
Sourceval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> ('b -> Sexplib0.Sexp.t) -> ('a, 'b) t -> Sexplib0.Sexp.t
Sourceval return : ('a, 'b) t -> 'a -> 'b
Sourceval protect : ?allow_in_background:bool -> Core.Source_code_position.t -> (_, 'a) t -> f:(unit -> 'a) -> finally:(unit -> unit) -> 'a

See Background for the invariants that must be maintained when running an async job in the background.

OCaml

Innovation. Community. Security.