diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-28 08:31:35 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-28 08:31:35 +0000 |
| commit | 69e0bb6d5772ef15a122b5b697ceb3c12902af7f (patch) | |
| tree | 1e844ef7bb01533ce06310b79a92cd0c75a53ba1 /lib/thwait.rb | |
| parent | 294e9111725b87984c8308eef4939b975904a786 (diff) | |
| download | ruby-69e0bb6d5772ef15a122b5b697ceb3c12902af7f.tar.gz ruby-69e0bb6d5772ef15a122b5b697ceb3c12902af7f.tar.xz ruby-69e0bb6d5772ef15a122b5b697ceb3c12902af7f.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/thwait.rb')
| -rw-r--r-- | lib/thwait.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thwait.rb b/lib/thwait.rb index 958163ede..45d6a8971 100644 --- a/lib/thwait.rb +++ b/lib/thwait.rb @@ -48,7 +48,7 @@ class ThreadsWait def ThreadsWait.all_waits(*threads) tw = ThreadsWait.new(*threads) - if iterator? + if block_given? tw.all_waits do |th| yield th @@ -125,7 +125,7 @@ class ThreadsWait def all_waits until @threads.empty? th = next_wait - yield th if iterator? + yield th if block_given? end end end |
