10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-11 05:43:35 +02:00
QCaml/Parallel/Farm.mli

13 lines
385 B
OCaml
Raw Normal View History

2018-10-21 23:54:28 +02:00
(** The Farm skeleton, similar to SklMl.
The input is a stream of input data, and the output is a stream of data.
*)
2018-10-22 13:39:02 +02:00
val run : ('a -> 'b) -> 'a Stream.t -> 'b Stream.t
2018-10-21 23:54:28 +02:00
(** Run the [worker_function] on every process by popping elements from the
input stream, and put the results on the output stream. The order of the
output is consistent with the order of the input. *)