package devkit
Development kit - general purpose library
Install
Dune Dependency
Authors
Maintainers
Sources
devkit-1.20210120.tbz
md5=47338eaae436aba40abd4d194ee40054
sha256=499b050b73643f6ad7349a41485539d4166d149a07fba59cb6841f508c0297f8
sha512=6a5bf77061d390ddb331ed3d5891a5c56502be91f0eff6846202f658ebfa97ef57695d7a192cbdad4c7b8835f5665df3ea4375daf46930334ebbd9a07f00feca
doc/devkit.core/Devkit_core/Parallel/index.html
Module Devkit_core.Parallel
Source
Parallel
Invoke function in a forked process and return result
Launch function for each element of the list in the forked process. Does not wait for children to finish - returns immediately.
Source
val run_forks :
?wait_stop:int ->
?revive:bool ->
?wait:int ->
?workers:int ->
('a -> unit) ->
'a list ->
unit
Launch forks for each element of the list and wait for all workers to finish. Pass exit signals to the workers, see Forks.stop
for the description of wait_stop
parameter.
Same as run_forks
but do not fork for one worker
Process list with specified number of workers. Pass exit signals to the workers, see Forks.stop
for the description of wait_stop
parameter.
Source
val run_workers_enum :
int ->
?wait_stop:int ->
('a -> 'b) ->
('b -> unit) ->
'a Enum.t ->
unit
Process enum with specified number of workers, collect results via provided callback. Pass exit signals to the workers, see Forks.stop
for the description of wait_stop
parameter.
Forked workers
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>