I think this can happen?
- Future A calls get, see it is not completed, calls completer, starts waiting
- Future B, in same batch, calls get, see it is not completed, calls completer, this future is no longer in the batch, so it completes before future A's call to completer
- Future B sees it is not completed but it called its completer. Kaboom!
Seems like an obvious miss, so perhaps this is not right. Will look later.
I think this can happen?
Seems like an obvious miss, so perhaps this is not right. Will look later.