package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.tar.gz
sha256=28f4c68127579b86c5f50e01e444e8c51f0543bc5472c2dcac28993bc88aa756
md5=0317493fa5cc1054a882ceca59ce5992

doc/devkit.core/Devkit_core/MVar/index.html

Module Devkit_core.MVarSource

Variable shared between threads

Sourcetype 'a t
Sourceval create : unit -> 'a t

Create

Sourceval set : 'a t -> 'a -> unit

Set the variable (overwriting previous value if any) and return immediately

Sourceval clear : 'a t -> unit

Unset the variable

Sourceval get : 'a t -> 'a

Get value (block until it is available)

Sourceval grab : 'a t -> 'a

Get value (block until it is available) and unset

Sourceval try_get : 'a t -> 'a option

Get value immediately without blocking

  • returns

    None if value was not set

Sourceval try_grab : 'a t -> 'a option

Grab value immediately without blocking

  • returns

    None if value was not set

OCaml

Innovation. Community. Security.