Skip to content

Commit

Permalink
Stop using needless enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Mar 5, 2024
1 parent c8f2dc4 commit 5728794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/task.jl
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ waitall(tasks; failfast=false) = _wait_multiple(tasks; all=true, failfast=failfa
function _wait_multiple(waiting_tasks; all=false, failfast=false)
tasks = Task[]

for (i, t) in enumerate(waiting_tasks)
for t in waiting_tasks
t isa Task || error("Expected an iterator of `Task` object")
push!(tasks, t)
end
Expand Down

0 comments on commit 5728794

Please sign in to comment.