Hey all, I have some code that uses @spawn to generate ~50 tasks
tasks=Vector{Task}()
function process_row_group(range::Tuple{Int64,RangeMarker})
for col_name in col_names
push!(tasks, Threads.@spawn process_column_cursor(col_name, range))
end
end
I know it’s possible to call wait(task)
for a single one. What the best way to wait on them all? Would foreach(wait, tasks)
be the best way to do this?