module GoChanel
chanel is a FIFO queue. It will sleep when push into a channel with full buffer. It will sleep when pop from an empty channel It will raise Exception when push into a closed channel It will still work when pop form an empty channel just like go channel
Constants
- VERSION
Public Class Methods
go(*args, &proc)
click to toggle source
# File lib/go_chanel.rb, line 9 def self.go(*args, &proc) Thread.new(args) do |params| proc.call(*params) end end