package bastet_lwt

  1. Overview
  2. Docs
Lwt implementations for bastet

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
md5=4aef3007a0050ca5ec7de2a5cd91f9ee
sha512=f749201895759847acae88ae215668a704b91babe28555763ae6003725b730ba5031639348527eccf31610ee9e214b2270e72aeca1ce4987bd2a629b497296f4

README.md.html

bastet_lwt

Lwt implementations for bastet

Installation

opam install bastet_lwt

Documentation

See documentation

Example

# #require "bastet";;
# #require "bastet_lwt";;

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

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

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

# Bastet_lwt.List.Traversable.sequence list_of_promises;;
- : string list = ["foo"; "bar"; "baz"]

License

See LICENSE

OCaml

Innovation. Community. Security.