Skip to content

Multitasking: when is await _required_? #1721

Answered by dlech
dmusican asked this question in Q&A
Discussion options

You must be logged in to vote

If the documentation says await before the function, then await is needed when multitasking.

There are some functions that may seem to work without await, but what is really happening is that they are running in the background while the program continues with the next lines. So if you did two beeps in a row, it probably wouldn't work as expected without await.

Replies: 2 comments 5 replies

Comment options

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

Answer selected by dmusican
Comment options

You must be logged in to vote
4 replies
@laurensvalk
Comment options

@dmusican
Comment options

@laurensvalk
Comment options

@FLL-Team-24277
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants