package opam-core
Module OpamParallelSource
Parallel execution of jobs following a directed graph
When one job fails due to an exception, other running jobs are interrupted and reported with this sub-exception in the Errors list
Simply parallel execution of tasks
In the simple iter, map and reduce cases, ints are the indexes of the jobs in the list
Source
val iter :
jobs:int ->
command:('a -> unit OpamProcess.job) ->
?dry_run:bool ->
'a list ->
unitSource
val map :
jobs:int ->
command:('a -> 'b OpamProcess.job) ->
?dry_run:bool ->
'a list ->
'b listSource
val reduce :
jobs:int ->
command:('a -> 'b OpamProcess.job) ->
merge:('b -> 'b -> 'b) ->
nil:'b ->
?dry_run:bool ->
'a list ->
'bMore complex parallelism with dependency graphs