Does anyone have a good example of using trio/asyn...
# prefect-community
s
Does anyone have a good example of using trio/asyncio directly in a task/flow? I have a basic 4-function script that uses trio memory channels. Specifically, it uses a producer/consumer with send/receive channels to achieve 40-fold concurrency for API scraping. When I try various approaches to convert to flows/tasks either hangs after completion or complains about lacking an event loop. I've tried a number of combinations and haven't found anything, including just a flow function that calls the other functions.
z
We use anyio in lots of places, but we don’t have support for trio yet.
s
Thx, @Zanie.