[exploration] support async solid defs in appropriate python versions
See original GitHub issueshould we support asyncio.run
ing solids ?
@solid(...)
async def fancy():
x = await do_stuff()
return x
should we support async generators in python 3.6+ ?
@solid(...)
async def fancy():
x = await do_stuff()
yield Output(x)
should we have an in process engine that gathers over multiple async solids ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Python behind the scenes #12: how async/await works in ...
Mark functions as async. Call them with await. All of a sudden, your program becomes asynchronous – it can do useful things while...
Read more >asyncio — Asynchronous I/O — Python 3.11.1 documentation
asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection ...
Read more >How to choose asynchronous or synchronous method ...
So yes - two different independent AsyncCommunicationStack and CommunicationStack classes is a way to go if you want to support both worlds.
Read more >Top 9 Asynchronous Web Frameworks for Python
One catch is that Python 3.7+ is only supported, but, then, if you're not running the latest version of Python, maybe async isn't...
Read more >Some thoughts on asynchronous API design in a post- ...
I've recently been exploring the exciting new world of asynchronous I/O libraries in Python 3 – specifically asyncio and curio.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
AWESOME!!! THANK YOU!!!
closing as
@solid
can now decorate async def functions since 0.11.4. will track work about the proper executor support in a separate issue https://github.com/dagster-io/dagster/issues/4041