Measures Concepts
GitHub icon

Async Await

Async Await - language feature

< >
Example from JavaScript, TypeScript:
async doSomething => await somethingElse()
Example from C#:
public async Task<int> FindPageSize(Uri uri) { byte[] data = await new WebClient().DownloadDataTaskAsync(uri); return data.Length; }
Example from bog:
let {print} = import "std.io" let foo = fn() print("foo started") let bar_frame = async bar() print("in foo") let bar_res = await bar_frame print("foo finished") return bar_res let bar = fn() print("bar started") suspend print("bar resumed") suspend print("bar finished") return 1 print("main started") let foo_frame = async foo() print("in main") let res = await foo_frame print("main finished:", res)

Languages with Async Await include JavaScript, C#, TypeScript, Dart, X10, bog

Languages without Async Await include Ruby, C3, Jule

This question asks: Does the language have an async/await construct?

Read more about Async Await on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout