Closed eRaz0rHead closed 8 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!
) and we'll verify. Thanks.
I signed it!
CLAs look good, thanks!
A few suggestions for the test, otherwise looks good! (and I'm happy to merge & then fix it up as well, if that works for you)
I believe we can use the standard future, rather than the delay.
The key to reproducing the bug is that there is still a listener when the reSort happens. Since that's in the microTask loop, delaying clean up with a simple future should still work.
Or be lazy and leave the subscription active until the test exits .. that also works
Updated the test to use the synchronous deliverListChanges as suggested.
LGTM, thanks!
Fixes https://github.com/dart-lang/observe/issues/79