mirror of
https://github.com/lloeki/normandy.git
synced 2025-12-06 10:04:39 +01:00
WIP
This commit is contained in:
parent
0cdf0a490a
commit
06273c3525
11 changed files with 208 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue