Skip to content

Instantly share code, notes, and snippets.

Forked from mikecmpbll/act.rb
Last active Aug 29, 2015
What would you like to do?
w_r, w_w = IO.pipe
t_r, t_w = IO.pipe
work = {; w_w.write('.') }
timeout ={ sleep 10; t_w.write('.') }
io = [w_r, t_r]
if io == t_r
#No timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment