This commit is contained in:
Loic Nageleisen 2015-12-15 13:50:47 +01:00
parent 0cdf0a490a
commit 06273c3525
11 changed files with 208 additions and 29 deletions

View file

@ -10,8 +10,6 @@ go lambda {
begin
j = jobs.recv
rescue Channel::Closed
# TODO: wrong! ends before all items recv'd
# j, more := <-jobs; more == True
puts 'received all jobs'
done << true
return
@ -21,7 +19,7 @@ go lambda {
end
}
3.times do |j|
1.upto 3 do |j|
jobs << j
puts "sent job #{j}"
end