package opam-core
Core library for opam 2.1
Install
Dune Dependency
Authors
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
2.1.4.tar.gz
md5=f8123b6840e93000fcf228aa9cb23891
sha512=276fdbe4e114a0d23b9d4b7938d87bf39c06b4716fae601588da7d5d2d5d9b5c584855d96edfed2eb5ac8a36ee9431c4ea7d281c52acdab28b9a3bdcbf10ce57
doc/opam-core/OpamParallel/index.html
Module OpamParallel
Source
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. First list is return code of sucessfull commands, second those which raised expcetions, and third one those which were canceled.
Source
val iter :
jobs:int ->
command:('a -> unit OpamProcess.job) ->
?dry_run:bool ->
'a list ->
unit
Source
val map :
jobs:int ->
command:('a -> 'b OpamProcess.job) ->
?dry_run:bool ->
'a list ->
'b list
Source
val reduce :
jobs:int ->
command:('a -> 'b OpamProcess.job) ->
merge:('b -> 'b -> 'b) ->
nil:'b ->
?dry_run:bool ->
'a list ->
'b
More complex parallelism with dependency graphs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>