Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Decouple consumers/producers in ChangeManager

Open david-allison opened this issue 6 months ago • 3 comments

Decouple consumers/producers in ChangeManager, primarily for use in the API

  • A non-blocking publish(OpChanges) method can be used
  • Future: batching will be available
  • Current methods continue to block until subscribers are notified.

I was requested to split this off the main issue by an established contributor, please ping if more details are necessary

david-allison avatar May 20 '26 02:05 david-allison

@DoomsCoder here it is! Comment and I can assign it

david-allison avatar May 20 '26 02:05 david-allison

@DoomsCoder here it is! Comment and I can assign it

Thanks @david-allison! I'm happy to take this on

DoomsCoder avatar May 20 '26 04:05 DoomsCoder

@david-allison In the ChangeManagerTest.kt file , should i add the unit test to a new test class (e.g ChangeManagerPublishTest) or add to one of the existing test classes ChangeManagerExceptionHandlingTest ?

IMO, I'd prefer a new test class. What do you think?

DoomsCoder avatar May 26 '26 13:05 DoomsCoder