About This eBook by Bart De Smet

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Synchronization Behavior of await Expressions

Asynchronous operations usually complete on a different thread than the one making the initial request to perform the operation. You’ve seen this repeatedly when studying the APM, EAP, and TAP patterns earlier in this chapter. This is a direct artifact from the way asynchronous completion of I/O operations is carried out on the thread pool. When dealing with compute bound asynchrony, the background thread that performed the computation will likely also be the one signaling the operation’s completion.

This decoupling from the requestor’s original context has traditionally posed an additional inconvenience, requiring manual synchronization for example to update the UI with the operation’s result. A ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required