package eio
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=da260d9da38b3dde9f316652a20b13a261cf90b85a2498ac669b7d564e61942d
sha512=5886e1159f48ede237769baa1d8b5daafa0310e4192d7fe0e8c32aef70f2b6378cef72d0fbae308457e25d87a69802b9ee83a5e8f23e0591d83086a92d701c46
doc/eio/Eio/Fiber/List/index.html
Module Fiber.List
Source
Concurrent list operations.
These functions behave like the ones in the standard library's List
module, except that multiple items can be processed concurrently.
They correspond to Lwt's Lwt_list.*_p
operations. e.g. Lwt_list.iter_p
becomes Fiber.List.iter
. For the Lwt_list.*_s
operations, just use the standard library function. e.g. Lwt_list.iter_s
can be replaced by a plain List.iter
.
filter f x
is like List.filter f x
except that the invocations of f
are run concurrently in separate fibers.
map f x
is like List.map f x
except that the invocations of f
are run concurrently in separate fibers.
filter_map f x
is like List.filter_map f x
except that the invocations of f
are run concurrently in separate fibers.
iter f x
is like List.iter f x
except that the invocations of f
are run concurrently in separate fibers.