A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ruby/mspec/commit/d84d7668449e96856c5f6bac8cb1526b6d357ce3 below:

Fix block_caller · ruby/mspec@d84d766 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed Original file line number Diff line number Diff line change

@@ -10,7 +10,11 @@ def matches?(block)

10 10

blocking = false

11 11

end

12 12 13 -

while !started and status = thread.status and status != "sleep"

13 +

Thread.pass while !started

14 + 15 +

# Wait until the Thread status is "sleep" (then it's blocking)

16 +

# or nil (the Thread finished execution, it did not block)

17 +

while status = thread.status and status != "sleep"

14 18

Thread.pass

15 19

end

16 20

thread.kill

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4