Commit 14002f6
committed
Ensure DataLoaderSubscriber is only called by one thread
Multiple threads may call `onNext` - we thus (lazily) chuck a
`synchronized` to ensure correctness at the cost of speed.
In future, we should examine how we should manage this concurrency
better.1 parent 0d0b2f8 commit 14002f6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
651 | 653 | | |
652 | | - | |
| 654 | + | |
653 | 655 | | |
654 | 656 | | |
655 | 657 | | |
| |||
0 commit comments