C# and Multithreading: Awaiting the Awaitable

Less than a minute to read

The async/await keywords were introduced as part of the release for .NET Framework 4.5, and along with it came the TPL (task parallelism library) which afforded developers to "await" multi-threaded operations. This introduced the promised-based programming paradigm, whereby multi-threaded code could be written in a way that was significantly easier to understand, as operations would appear as being sequential to the programmer.

An "awaited" task would be executed on a separate thread, and would resume to the calling thread upon completion and proceed to execute subsequent operations.