Skip to content

(when) would it be wise to use asyncio ? #15105

Discussion options

You must be logged in to vote

In my view any project involving concurrency is best handled with asyncio. Using interrupts, threads and timers is necessary in certain applications, usually when fast responses or accurate timing is required. If a response to an external event in (say) 100ms is acceptable, asyncio usually leads to a better design.

Most of the professional firmware projects I was involved with were based on cooperative multi-tasking - and those that were not had clear technical reasons for this design choice.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Flipje1955
Comment options

You must be logged in to vote
1 reply
@Flipje1955
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants