We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a92e8 commit 55422d9Copy full SHA for 55422d9
test/threadpool_use.jl
@@ -6,11 +6,6 @@ using Base.Threads
6
@test nthreadpools() == 2
7
@test threadpool() === :default
8
@test threadpool(2) === :interactive
9
-dtask() = @test threadpool(current_task()) === :default
10
-itask() = @test threadpool(current_task()) === :interactive
11
-dt1 = @spawn dtask()
12
-dt2 = @spawn :default dtask()
13
-it = @spawn :interactive itask()
14
-wait(dt1)
15
-wait(dt2)
16
-wait(it)
+@test fetch(Threads.@spawn Threads.threadpool()) === :default
+@test fetch(Threads.@spawn :default Threads.threadpool()) === :default
+@test fetch(Threads.@spawn :interactive Threads.threadpool()) === :interactive
0 commit comments