Comments (3)
Hi @prophile
This is interesting at first, but I’m not sure.
Like you said, gather has its own quirks. For example, I believe it’s possible to pass a flag that changes its behavior quite substantially.
The library already has run_all and run_any helpers which build on top of amap. Don’t those do the trick?
from aiometer.
Potentially yes, and switching over to them would be an aspiration. But changing something from using asyncio.gather
to aiometer.run_all
isn't necessarily drop-in in the sense that things might rely on asyncio.gather
's peculiarities and changing them might cause a breakage.
For me (us) I think that's useful to do, but it would also be useful to get metering in the short term before doing the bigger job of changing over to run_all
.
from aiometer.
I think I understand where you’re at, but let me rephrase this.
What piece of public API do you think we could add to aiometer that would address this use case? If we were to add a gather « like for like but with metering », what would be its signature and a few code usage examples?
from aiometer.
Related Issues (10)
- Simplifying amap usage HOT 3
- requests as list HOT 2
- Interaction with tenacity retry HOT 5
- swap the stream contexts with the taskgroup context HOT 5
- Update requirements HOT 5
- Handling of exceptions and documentation
- Best practice for handling rate limits HOT 1
- Bump anyio dependency to latest major version HOT 8
- Allow AsyncGenerator or AsyncIterator for "args" HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiometer.