Coerce-rs
async-sema
Coerce-rs | async-sema | |
---|---|---|
5 | 1 | |
718 | 636 | |
- | 0.8% | |
7.5 | 0.0 | |
7 months ago | 8 months ago | |
Rust | 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.
Coerce-rs
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?
tiny-tokio-actor - A simple tiny actor library on top of Tokio
react-cool-form - 😎 📋 React hooks for forms state and validation, less code more performant.
axiom - Implementation of a highly-scalable and ergonomic actor model for Rust
async-interval-job - ✨ setInterval for promises and async/sync functions. Support graceful shutdown and prevent multiple executions from overlapping in time.
remoc - Remoc 🦑 — Remote multiplexed objects, channels and RPC for Rust
threadedClass - Fork instances of classes with one line of code, all while retaining the types of the class.
riker - Easily build efficient, highly concurrent and resilient applications. An Actor Framework for Rust.
cofx - A node and javascript library that helps developers describe side-effects as data in a declarative, flexible API.
bastion - Highly-available Distributed Fault-tolerant Runtime
Micro - Asynchronous HTTP microservices
async-backplane - Simple, Erlang-inspired fault-tolerance framework for Rust Futures.
SwiftCoroutine - Swift coroutines for iOS, macOS and Linux.