Skip to content
EntityQ16245951· pop 7· linked from 33 articles

async/await

Sign in to save

In computer programming, the async/await pattern is a syntactic feature of many programming languages that allows an asynchronous, non-blocking function to be structured in a way similar to an ordinary synchronous function.

~18 min read

Encyclopedic overview

16 sections
Contents
  • History
  • Example
  • Implementations
  • C
  • C++
  • C#
  • F#
  • Java
  • JavaScript
  • Perl
  • Python
  • Rust
  • Swift
  • Benefits and criticisms
  • See also
  • References

In computer programming, the async/await pattern is a syntactic feature of many programming languages that allows an asynchronous, non-blocking function to be structured in a way similar to an ordinary synchronous function.

It is semantically related to the concept of a coroutine and is often implemented using similar techniques, and is primarily intended to provide opportunities for the program to execute other code while waiting for a long-running, asynchronous task to complete, usually represented by promises or similar data structures. The feature is found in C#, C++, Python, F#, Hack, Julia, Dart, Kotlin, Rust, Nim, JavaScript, and Swift.

Excerpted from Wikipedia’s “async/await” article, available under the CC BY-SA 4.0 licence.

Available in 7 languages

via Wikidata sitelinks · CC0