Skip to content

How to call in a async mode? #523

Answered by kemingy
decadance-dance asked this question in Q&A
Discussion options

You must be logged in to vote

await the async function one-by-one makes it work like a sync function call. You can use asyncio.gather. Or you can also use the ThreadPool, ref to https://github.com/mosecorg/mosec/blob/main/tests/bad_req.py

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by decadance-dance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants