Skip to content

Commit 7337cba

Browse files
committed
Remove deprecated Task.yield.
1 parent 51c6cc7 commit 7337cba

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/async/pool/controller.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,7 @@ def start_gardener
254254
@gardener = task
255255

256256
while true
257-
if @policy
258-
@policy.call(self)
259-
else
260-
Task.yield
261-
end
262-
257+
@policy&.call(self)
263258
self.wait
264259
end
265260
ensure

0 commit comments

Comments
 (0)