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.
nil
1 parent 4392877 commit c0f9502Copy full SHA for c0f9502
lib/async/node.rb
@@ -300,7 +300,7 @@ def stop(later = false)
300
#
301
# @returns [self] Returns self for method chaining.
302
def wait
303
- self
+ nil
304
end
305
306
# Whether the node has been stopped.
test/async/node.rb
@@ -315,7 +315,7 @@
315
with "#wait" do
316
it "returns self for a plain node" do
317
result = node.wait
318
- expect(result).to be_equal(node)
+ expect(result).to be_nil
319
320
321
0 commit comments