PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Async Await

< >
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, Static Typescript

Languages without Async Await include Ruby, C3, Jule

Read more about Async Await on the web: 1.

HTML of this page generated by Features.ts

hasAssignment.html 路 hasAsyncAwait.html 路 hasBinaryNumbers.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com