There are already very good questions and references about calling asynchronous methods synchronously, but I wonder how the usage of JoinableTaskFactory
might affect the current answers.
In other words, in this question Stephen Cleary discusses three possible solutions each with some caveats. In this MS article Stephen Cleary talks about yet a few more methods to call asynchronous methods synchronously but I've never seen JoinableTaskFactory
analysed or referred in any article.
So my question is, does JoinableTaskFactory
still have some of the caveats that the other presented solutions have (or other caveats for that matter) and what are those? Under what circumstances would one use JoinableTaskFactory
and under which circumstances would one not use it? What does one need to basically know or take into consideration when using JoinableTaskFactory
?