Make turns atomic, rather than reply-turn-per-event
This commit is contained in:
parent
d6c8a80995
commit
c7718b3ddd
|
@ -36,7 +36,7 @@ public class Turn {
|
||||||
|
|
||||||
private void commit() {
|
private void commit() {
|
||||||
if (_pending != null) {
|
if (_pending != null) {
|
||||||
_pending.forEach((ac, q) -> ac.execute(() -> q.forEach(f -> Turn.forActor(ac, f))));
|
_pending.forEach((ac, q) -> ac.execute(() -> Turn.forActor(ac, t -> q.forEach(f -> f.accept(t)))));
|
||||||
_pending = null;
|
_pending = null;
|
||||||
}
|
}
|
||||||
_complete = true;
|
_complete = true;
|
||||||
|
|
Loading…
Reference in New Issue