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

Description

README

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

Dependencies (4)

  1. dune >= "2.4.0"
  2. async_kernel >= "v0.12.0"
  3. bastet >= "1.2.5"
  4. ocaml >= "4.06.1"

Dev Dependencies (6)

  1. odoc >= "1.5.0" & with-doc
  2. mdx >= "1.6.0" & with-test
  3. alcotest-async >= "1.0.1" & < "1.6.0" & with-test
  4. alcotest >= "1.0.1" & < "1.6.0" & with-test
  5. core with-test & >= "v0.12.0"
  6. async_unix with-test & >= "v0.12.0"

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.