nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use `SynchronizedCounter` in chameneos-redux
[nit.git]
/
lib
/
actors
/
examples
/
chameneos-redux
/
chameneosredux.nit
diff --git
a/lib/actors/examples/chameneos-redux/chameneosredux.nit
b/lib/actors/examples/chameneos-redux/chameneosredux.nit
index
9143e22
..
60361a8
100644
(file)
--- a/
lib/actors/examples/chameneos-redux/chameneosredux.nit
+++ b/
lib/actors/examples/chameneos-redux/chameneosredux.nit
@@
-128,7
+128,7
@@
fun work(n, nb_colors : Int ) do
for c in creatures do c.async.run
- active_actors.is_empty
+ active_actors.wait
var total = 0
for c in creatures do