cofx
async-sema
cofx | async-sema | |
---|---|---|
2 | 1 | |
94 | 609 | |
- | 0.8% | |
0.0 | 0.0 | |
almost 2 years ago | 14 days ago | |
TypeScript | TypeScript | |
MIT License | 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.
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
async-sema
-
Throttle a series of fetch requests in JavaScript
Using a throttling mechanism would be the more elegant way to deal with this issue. In computer science there's the concept of a semaphore which describes a way to control access to a common resource by multiple processes. There is a library which implements that and allows you to limit the maximum parallel requests. The code would look something like this:
What are some alternatives?
boxed - Essential building-blocks for functional & safe TypeScript code
react-cool-form - 😎 📋 React hooks for forms state and validation, less code more performant.
conclure - ConclureJS
Coerce-rs - Actor runtime and distributed systems framework for Rust
async - Easily run code asynchronously
async-interval-job - ✨ setInterval for promises and async/sync functions. Support graceful shutdown and prevent multiple executions from overlapping in time.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
threadedClass - Fork instances of classes with one line of code, all while retaining the types of the class.
redux-saga - An alternative side effect model for Redux apps
SwiftCoroutine - Swift coroutines for iOS, macOS and Linux.
async - Async utilities for node and the browser
Micro - Asynchronous HTTP microservices