posterus
cofx
posterus | cofx | |
---|---|---|
3 | 2 | |
550 | 94 | |
- | - | |
0.0 | 0.0 | |
almost 3 years ago | almost 2 years ago | |
JavaScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
posterus
-
Cluster friendly task scheduler for NodeJS
Check out these; - https://github.com/mitranim/posterus - https://github.com/timgit/pg-boss - https://github.com/FirebaseExtended/firebase-queue - https://www.npmjs.com/package/rabbit-queue
-
I Avoid Async/Await
Async/Await covers the 80% of use cases for async logic in JS. Most people aren't really using promises as multicast references. They don't call `then` in one place, hang on to the promise reference, then call `then` again somewhere else (perhaps to represent a cached value); they call `then` once on the reference because it's just a moment in a composite operation.
It's for this reason that I think this library[0] is the more appropriate abstraction for that same 80% of use-cases, as its more memory efficient since you can represent the same composite operation that generates multiple promise references with a single object (a unicast reference instead). I haven't learned Rust but apparently the author bases this on Rust's ownership principle.
[0]https://github.com/mitranim/posterus
-
What is one thing you find annoying about react and are surprised it hasn't been addressed yet?
https://github.com/mitranim/posterus#taskdeinit
cofx
- I Avoid Async/Await
-
I wrote a tiny generator runner that transparently concludes yielded promises, iterators, and effects, making your async flows cancellable and testable.
Nice! I wrote something similar awhile back, also inspired by redux-saga: https://github.com/neurosnap/cofx
What are some alternatives?
Fluture - 🦋 Fantasy Land compliant (monadic) alternative to Promises
async-sema - Semaphore using `async` and `await`
CAF - Cancelable Async Flows (CAF)
boxed - Essential building-blocks for functional & safe TypeScript code
Immer - Create the next immutable state by mutating the current one
conclure - ConclureJS
firebase-queue
async - Easily run code asynchronously
React - The library for web and native user interfaces.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
redux-saga - An alternative side effect model for Redux apps