package octez-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-libs.stdlib/Tezos_stdlib/Lwt_dropbox/index.html
Module Tezos_stdlib.Lwt_dropboxSource
A 'dropbox' with a single element.
Type of dropbox holding a value of type 'a
The exception returned when trying to access a 'closed' dropbox.
put t e puts the element e inside the dropbox t. If the dropbox already held an element, the old element is discarded and replaced by the new one.
take t is a promise that resolves as soon as an element is held by t. The element is removed from t when the promise resolves.
If t already holds an element when take t is called, the promise resolves immediately. Otherwise, the promise resolves when an element is put there.
take_with_timeout timeout t behaves like take t except that it returns None if timeout resolves before an element is put.
Note that timeout is canceled (i.e., fails with Canceled) if an element is put in time (or if one is already present).
peek t is Some e if t holds e and None if t does not hold any element.