lib/tins/limited.rb in tins-1.25.0 vs lib/tins/limited.rb in tins-1.26.0
- old
+ new
@@ -36,9 +36,15 @@
end
def wait
@tg.list.each(&:join)
end
+
+ def process
+ yield self
+ ensure
+ wait
+ end
end
end
require 'tins/alias'