-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(core) - Make Client more forgiving by sharing result sources that em…
…it cached results (#1515) * Replace operation semaphore with shared behavior source Replace the client's counting of active operations with a single, shared operation result source in a Map. This achieves the same semaphore behaviour but replaces it with a binary semaphore-like cache, where the cached source remembers the last active result. * Prevent emitting cached result if a new result emitted first * Reuse client.query() in client.readQuery() * Add tests for shared source behaviour * Abstract replay logic in Client * Add test for shared subscription behaviour * Fix linting issues
- Loading branch information
Showing
6 changed files
with
324 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.