IT lexicon Programming async / await

async / await

Programming På svenska → Updated: 2026-05-23

Syntax that lets you write asynchronous code that looks synchronous.

Instead of callback hell (fetch().then(r => r.json()).then(d => ...)) you write const d = await fetch().then(r => r.json()). The code looks linear but runs non-blocking under the hood.

Exists in JavaScript, Python, Rust, C#, Kotlin and others. Built on Promises / Futures.

← Back to the lexicon