+5
-1
lines changedFilter options
+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