We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f12de commit 980fbdcCopy full SHA for 980fbdc
src/hxcoro/task/AbstractTask.hx
@@ -265,7 +265,6 @@ abstract class AbstractTask implements ICancellationToken {
265
// called from child
266
267
function childCompletes(child:AbstractTask, processResult:Bool) {
268
- numActiveChildren.sub(1);
269
if (processResult) {
270
switch (child.state.load()) {
271
case Completed:
@@ -281,6 +280,7 @@ abstract class AbstractTask implements ICancellationToken {
281
280
throw new TaskException('Invalid state $state in childCompletes');
282
}
283
+ numActiveChildren.sub(1);
284
checkCompletion();
285
286
0 commit comments