Longtime reader, first-time poster here.
My goal: To be able to take advantage of async/await while using the WebBrowser class. As the WebBrowser.Navigate(string ur
You can use TaskCompletionSource to create a Task and mark it as completed later.
TaskCompletionSource
I don't see any alternative for the non-generic task, but as Task derives from Task, you could just use a TaskCompletionSource and set the result to null.
Task