fun work(n, nb_colors : Int ) do
var place = new MeetingPlace(n)
var creatures = new Array[Creature]
for i in [0..nb_colors[ do
printn " " + colors[i % 3]
creatures[i] = new Creature(place, i % 3, i)
end
print ""
for c in creatures do c.async.run
active_actors.wait
var total = 0
for c in creatures do
print c.to_string
total += c.count
end
print get_number(total)
print ""
for c in creatures do
c.async.terminate
c.async.wait_termination
end
end
lib/actors/examples/chameneos-redux/chameneosredux.nit:120,1--146,3