IAsyncResult and unobserved exceptions

109 Views Asked by At

Before we had async/await and Task-oriented programming, there were async operations exposed on various I/O wrappers (that are still available) using the BeginOperation/EndOperation pattern with IAsyncResult. I'm having difficulty finding documentation around what happens if you never call the EndOperation part of the contract, especially with regard to unobserved exceptions. I know Tasks take a pretty dim view of unobserved exceptions. What happens if an IAsyncResult gets disposed while holding onto an exception?

0

There are 0 best solutions below