-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add onSync callback for implementing action queues (#52)
* add onActions callback for implementing action queues * add ignoreDestroying to meta in order to support waiting for actions to finish in queue before destroy * add test for ignoreDestroying, export ActionsCallback type * handle error in onActions * improve onActions description * add 1 more test for onActions * remove ignoreDestroying, move related logic to logux server * use different code example for onActions * fix typo * call inMap and inFilter outside of onActions * review docs issue * Update base-node/index.d.ts Co-authored-by: Andrey Sitnik <[email protected]> * Update base-node/index.d.ts Co-authored-by: Andrey Sitnik <[email protected]> * rename onActions to onSync, improve onSync tests * add inMap and inFilter to the onSync test * change onSync api to support calling access inside of queue * rename onSync to onReceive --------- Co-authored-by: Andrey Sitnik <[email protected]>
- Loading branch information
Showing
4 changed files
with
143 additions
and
30 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
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