mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-09-12 06:28:31 +02:00
14 lines
456 B
OCaml
14 lines
456 B
OCaml
(** The Farm skeleton, similar to SklMl.
|
|
|
|
The input is a stream of input data, and the output is a stream of data.
|
|
*)
|
|
|
|
|
|
val run_parallel : ('a -> 'b) -> 'a Stream.t -> 'b Stream.t
|
|
val run_sequential : ('a -> 'b) -> 'a Stream.t -> 'b Stream.t
|
|
(** 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. *)
|
|
|
|
|