Module elvis_task

Function Index

chunk_fold/6chunk_fold evaluates apply(Module, Function, [Elem|ExtrArgs]) for every element Elem in JobItemList in parallel with max concurrcy factor equal to Concurrency.

Function Details

chunk_fold/6

chunk_fold(FunWork::{Module::module(), Function::atom()}, FunAcc::fun((NewElem::term(), Acc::term()) -> Acc::term()), InitialAcc::term(), ExtraArgs::list(), JoinItemList::list(), Concurrency::non_neg_integer()) -> {ok, FinalAcc::term()} | {error, term()}

chunk_fold evaluates apply(Module, Function, [Elem|ExtrArgs]) for every element Elem in JobItemList in parallel with max concurrcy factor equal to Concurrency. On succesfull evaluation FunAcc function is called with the result of succesfull execution as a first parametr and accumulator as a second parametr.


Generated by EDoc