I am calling a library method that is synchronous. I’d like to use the new async and await features, but I’m not sure how since the library does not support asyncronity (does not return a task).
Is there a way to do it or do I need to build a wrapper that does what exactly?
You can run synchronous code in a background thread by calling it inside of
Task.Run.