2

I could not find any applicable documentation about this. What is the default TaskScheduler when using Azure Functions?

Ideally, I would like it to be based off of threadpool - i.e., TaskScheduler.Default - but I do not have any certainty in that respect and it affects whether I should stick ConfigureAwait(false) everywhere or not.

P.S.: There is one code path where impersonation is involved.

Tanveer Badar
  • 5,438
  • 2
  • 27
  • 32
  • 1
    If it's not documented then it's very likely the default. You can easily verify this by checking if `TaskScheduler.Current` is an instance of `ThreadPoolTaskScheduler` – Kevin Gosse Nov 11 '19 at 13:28

0 Answers0