Skip to content

Is it possible to "fire and forget"? #2226

Answered by cgillum
Kurren123 asked this question in Q&A
Discussion options

You must be logged in to vote

I think this should be okay. I need to be reminded about what the behavior is when cancelling a timer (it might result in a TaskCancelledException at the point of await context.CreateTimer(...), but otherwise I think what you have is fine.

I don't think this applies to your example here, but one behevior to be aware of is that all outstanding tasks must be completed or canceled before an orchestration can transition into a Completed state, so if you execute a task, don't await it, and let the function complete, you might be surprised to see that your orchestration remains in the Running state until the non-awaited tasks are completed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kurren123
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