Skip to content

Commit b6c5fe5

Browse files
committed
Fix warning output for deprecated code path.
1 parent a7d66a1 commit b6c5fe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/async/task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def to_s
136136

137137
# @deprecated Prefer {Kernel#sleep} except when compatibility with `stable-v1` is required.
138138
def sleep(duration = nil)
139-
warn("`Async::Task#sleep` is deprecated, use `Kernel#sleep` instead.", uplevel: 1, category: :deprecated) if $VERBOSE
139+
Kernel.warn("`Async::Task#sleep` is deprecated, use `Kernel#sleep` instead.", uplevel: 1, category: :deprecated) if $VERBOSE
140140

141141
super
142142
end

0 commit comments

Comments
 (0)