lib/fiber18.rb in fiber18-1.0.0 vs lib/fiber18.rb in fiber18-1.0.1
- old
+ new
@@ -50,9 +50,13 @@
end
def inspect
"#<#{self.class}:0x#{self.object_id.to_s(16)}>"
end
+
+ def alive?
+ @thread.alive?
+ end
end
class RootFiber < Fiber
def initialize
# XXX: what is a root fiber anyway?