Skip to content

Commit 7c39cf5

Browse files
committed
@async -> Threads.@spawn -> @sync
1 parent a0fc2a3 commit 7c39cf5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ParallelTestRunner.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,8 @@ function runtests(mod::Module, args::ParsedArgs;
10241024
#
10251025

10261026
tests_to_start = Threads.Atomic{Int}(length(tests))
1027-
for test in tests
1028-
push!(worker_tasks, @async begin
1027+
@sync for test in tests
1028+
push!(worker_tasks, Threads.@spawn begin
10291029
local p = nothing
10301030
acquired = false
10311031
try

0 commit comments

Comments
 (0)