square / cycler

Apache License 2.0
791 stars 27 forks source link

Notify changes synchronously if possible #60

Closed helios175 closed 2 years ago

helios175 commented 2 years ago

We don't want to use the mainScope.launch { calculateNotifications ; then update } path if the updates are synchronous (for instance, when only extra item is updated, or when going from empty to not-empty).

This PR changes:

pyricau commented 2 years ago

(one might wonder why no tests were updated in this change, but I'm going to pretend like this thought didn't occur to me)