metasync
metasync copied to clipboard
Asynchronous Programming Library for JavaScript & Node.js
Implement functional object with following properties methods and events: - `memoized.clear()` - clear cache - `memoized.add(key, value)` - add value to cach - `memoized.del(key)` - remove value from cach -...
Make `flow()` compatible with `collector()`, implement methods: - [x] `collect(key, error, value)` - [ ] `pick(key, value)` - [ ] `fail(key, error)` - [ ] `take(key, fn, ...args)` - [...
After refactoring we changed behavior and contracts. So need to find and update all Metarhia modules and maybe third-party projects.
- [ ] Performance tests - [x] Unittests - [ ] Cases and docs
- [x] `metasync.flow` - [x] `metasync.collect` Compare with: - [ ] `async.js` - [x] `Promise` - [ ] `async/await`
For [example](https://github.com/metarhia/metasync/pull/137#discussion_r119209427)
I don't see purpose for those branches now. List of branches which can be deleted: - [ ] find-test - [ ] possible-find-fix - [ ] refactor-flow - [ ]...
- `callback(err, data)` - `stop` everything if function returns error (optional)
- [x] tests and linter show no problems (`npm t`) - [ ] tests are added/updated for bug fixes and new features - [x] code is properly formatted (`npm run...