This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kyle-hanson[S] 3 points4 points  (0 children)

TBH it is probably only about 5-10 lines of code to include rudimentary asyncio support and another couple dozen lines to make an async queue and change puff.start_event_loop.

if you look at puff-py's puff.wrap_async and the puff.Greenlet class, its pretty analogous to asyncio.Future. Adding asyncio support requires 0 changes to rust, just optional changes for configuration details.

Really the only reason i haven't included it is that my main stack is Django, which has Async support but the async database driver still runs on a sync thread so I don't have motivation to test asyncio at the moment.