package bastet_async

  1. Overview
  2. Docs
Async implementations for bastet

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
md5=e15663969dac6d7013205e2c5750fd21
sha512=4dd0476f5285fed7dc570625b3fddf9546866f488ab4cd6933e9f9cc3c9947d84dba9d18bab71fd65aed0dc8826e01fa2e04291c53ece6a31c0e887e0e18439e

README.md.html

bastet_async

Async implementations for bastet

Installation

opam install bastet_async

Documentation

See documentation

Example

# #require "bastet";;
# #require "bastet_async";;

# let foo = Bastet_async.Monad.pure "foo"
  and bar = Bastet_async.Monad.pure "bar"
  and baz = Bastet_async.Monad.pure "baz";;
val foo : string Bastet_async.Monad.t = <abstr>
val bar : string Bastet_async.Monad.t = <abstr>
val baz : string Bastet_async.Monad.t = <abstr>

# let list_of_promises = [foo; bar; baz];;
val list_of_promises : string Bastet_async.Monad.t list =
  [<abstr>; <abstr>; <abstr>]

# Bastet_async.List.Traversable.sequence;;
- : 'a Bastet_async.Monad.t list -> 'a list Bastet_async.Monad.t = <fun>

# Bastet_async.List.Traversable.sequence list_of_promises;;
- : string list Bastet_async.Monad.t = <abstr>

License

See LICENSE

OCaml

Innovation. Community. Security.