Skip to content

Commit

Permalink
Ensure callback is added before sender is completed in toShared
Browse files Browse the repository at this point in the history
  • Loading branch information
skoppe committed Oct 19, 2021
1 parent 6ba3c1b commit 186c027
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/concurrency/operations/toshared.d
Expand Up @@ -159,8 +159,6 @@ class SharedSender(Sender, Scheduler, ResetLogic resetLogic) if (models!(Sender,
localState.op.start();
} else {
auto localState = state;
release(); // release early
// TODO: what happens if the sender completed after release, but before pushBack?
localState.dgs.pushBack(dg);
}
}
Expand Down

0 comments on commit 186c027

Please sign in to comment.