MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
452 stars 55 forks source link

Add developer-oriented documentation to GetDeferral #2593

Open fvanheeswijk opened 2 years ago

fvanheeswijk commented 2 years ago

Currently the GetDeferral and CoreWebView2Deferral documentation is not developer-friendly, the latter has the following documentation:

However Threading model for WebView2 apps > Deferrals > Deferrals in C# indicates that Complete() should not be called but using should be used and thus Dispose() should be called. I think the documentation should be updated to reflect that.

AB#40463981

nishitha-burman commented 2 years ago

Thanks for the feedback! We've added this as a scenario on our backlog!

obartelt commented 8 months ago

It should also be added that calling Dispose after calling Complete leads to a COMException. Ran into that today, should probably be fixed (or the documentation updated).