Open alecmocatta opened 4 years ago
There are two kinds of operation: adapter1 operations (like map, flat_map, filter, chain) and reducer operations (like sum, max, collect, fold).
map
flat_map
filter
chain
sum
max
collect
fold
ParallelSink
mod new_file;
FolderSync
folder_par_sink
cargo clippy --all-targets
cargo fmt --all
ParallelStream
ParallelPipe
There are two kinds of operation: adapter1 operations (like
map
,flat_map
,filter
,chain
) and reducer operations (likesum
,max
,collect
,fold
).Adding a reducer operation
ParallelSink
, probably in a new file in amadeus-core/src/par_sink (don't forget to addmod new_file;
to amadeus-core/src/par_sink.rs).FolderSync
trait.FolderSync
trait and thefolder_par_sink
macro are a convenience to minimise boilerplate implementingParallelSink
for operations which can be implemented as a synchronous fold operation, which is most of them.cargo clippy --all-targets
andcargo fmt --all
Adding an adapter operation
ParallelStream
andParallelPipe
, probably in a new file in amadeus-core/src/par_stream (don't forget to addmod new_file;
to amadeus-core/src/par_stream.rs).cargo clippy --all-targets
andcargo fmt --all