Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (11 sloc) 336 Bytes
#!/usr/bin/env ruby
# If we link a method to a dead fiber, it should be called immediately
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'eventless'
def say_goodbye(fiber)
puts "goodbye!"
f = Eventless.spawn { puts "in the fiber" }
f.join, :say_goodbye)
sleep 0 # yield back to the event loop