Re:Ask HN: Why can't await be used from non-async functions?
by klodolph on Monday February 28, 2022 @01:53PM
(#30503498)
I mean, depends on what you mean by "100% safe". You can synchronously wait from a thread that's not in the thread pool executing the tasks. Obviously that's not sufficient for safety, but it should be illustrative that safety is possible. There are also some issues with using .Wait or .Result but those can be solved.
[ Parent
| on HN ]
There are no comments on this comment yet.