Comments (1)
For this case here I don't think the input function even needs to be async
- there's no reason the following couldn't be supported too:
def three(one, two):
return one + two
result = await registry.resolve(three)
Still need an await
on registry.resolve()
in case any of the dependency functions need to be awaited, but the function itself doesn't necessarily have to be an async one.
from asyncinject.
Related Issues (14)
- Ignore parameters with default values HOT 4
- Concurrency is not being optimized HOT 5
- Turn that visualization hack into a feature HOT 4
- Documentation for .register() method, plus let it accept a name
- Handle non-async functions too HOT 8
- Tests and documentation showing what happens if something raises an Exception
- Option to pass a dictionary with explicit names HOT 1
- Try using __init_subclass__ HOT 1
- Documentation needs a smarter example that illustrates graph dependencies
- Debug mechanism HOT 4
- A way to turn off parallel execution (for easier comparison) HOT 2
- Record start and end times for each step when logging HOT 2
- Investigate a non-class-based version HOT 4
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 asyncinject.