Skip to content

What could happen if I did NOT await a task in an actor handler? #6679

Answered by Arkatufus
tjaart asked this question in Q&A
Discussion options

You must be logged in to vote

It really depends on the async code, if it is thread safe and does not have any callback that references any of the actor state then it should be fine.
What happens is that the thread Task will be launched as a detached Task outside of the actor system scheduler and its completion will not be checked. This is akin to declaring your method as async void

Replies: 1 comment 1 reply

Comment options

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

Answer selected by tjaart
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