package ambient-context

  1. Overview
  2. Docs
Abstraction over thread-local / continuation-local storage mechanisms for communication with transitive dependencies

Install

Dune Dependency

Authors

Maintainers

Sources

v0.1.0.tar.gz
md5=0171c39c3b15aa567df33792d177314a
sha512=0ef177d42e120fb174350ebc9db7d87106d9509d0c9f7f49dfce3bbf424259a1ec8f9bbf1b6a8faecff10544a7530a5d1d4d2fffdfc3f4a39c34c119540a28b2

doc/ambient-context.unix/Ambient_context/index.html

Module Ambient_contextSource

include module type of struct include Ambient_context_core.Types end
Sourcetype storage = (module STORAGE)
Sourcetype 'a key = int * 'a Hmap.key
Sourceval debug : bool
Sourceval id : int Atomic.t
Sourceval generate_debug_id : unit -> int
Sourceval compare_key : int -> int -> int
Sourceval current_storage_key : storage TLS.t
Sourceval get_current_storage : unit -> Ambient_context_core.Types.storage
Sourceval create_key : unit -> int * 'a Ambient_context_core.Ambient_context_hmap.key
Sourceval get : (int * 'a Ambient_context_core.Ambient_context_hmap.key) -> 'a option
Sourceval with_binding : 'a key -> 'a -> (unit -> 'r) -> 'r
Sourceval without_binding : (int * 'a Ambient_context_core.Ambient_context_hmap.key) -> (unit -> 'b) -> 'b
Sourceval set_storage_provider : Ambient_context_core.Types.storage -> unit
OCaml

Innovation. Community. Security.