Skip to content

Commit 22bd9e2

Browse files
committed
use === instead of isa, it can be cheaper AFAIK
1 parent cfc7ed2 commit 22bd9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/task.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ function wait()
12051205
have_result = false
12061206
W = workqueue_for(Threads.threadid())
12071207
task = trypoptask(W)
1208-
if !(task isa Task)
1208+
if task === nothing
12091209
# No tasks to run; switch to the scheduler task to run the
12101210
# thread sleep logic.
12111211
sched_task = get_sched_task()

0 commit comments

Comments
 (0)