This is similar to #86 (tforeach) which led me to (https://github.com/JuliaFolds2/OhMyThreads.jl/pull/88) handle empty collections for tmapreduce (and thus also tforeach) explicitly (throw error if no init is supplied). I tried to align with the serial mapreduce / foreach behavior which, I think, is also what we should aim for here.
For
tmap
(and thus alsotcollect
) we currently haveFor comparison:
This is similar to #86 (
tforeach
) which led me to (https://github.com/JuliaFolds2/OhMyThreads.jl/pull/88) handle empty collections fortmapreduce
(and thus alsotforeach
) explicitly (throw error if noinit
is supplied). I tried to align with the serialmapreduce
/foreach
behavior which, I think, is also what we should aim for here.