API compatible Thread based Fiber implementation for Ruby 1.8
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead of tmm1:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README
Rakefile
fiber18.gemspec

README

Poor Man's Fiber (API compatible Thread based Fiber implementation for Ruby 1.8)
  (c) 2008 Aman Gupta (tmm1)

== Usage

f = Fiber.new{ |sym|
  p(sym)
  puts 'hi'
  p(Fiber.yield 1)
  puts 'bye'
  :end
}
p(f.resume :begin)
p(f.resume 2)

:begin
hi
1
2
bye
:end