top-level-await - Use `await` at your Node.js code's top level!

  •        18

Allow using await at your code's top level. Requires Node.js v7.6.0 or higher. Inside app.js, you can use await whenever you like.

https://github.com/robertklep/top-level-await

Dependencies:

semver : ^5.3.0

Tags
Implementation
License
Platform

   




Related Projects

proposal-top-level-await - top-level `await` proposal for ECMAScript (stage 2)

  •    HTML

This proposal is currently in stage 2 of the TC39 process. The async / await proposal was originally brought to committee in January of 2014. In April of 2014 it was discussed that the keyword await should be reserved in the module goal for the purpose of top-level await. In July of 2015 the async / await proposal advanced to Stage 2. During this meeting it was decided to punt on top-level await to not block the current proposal as top-level await would need to be "designed in concert with the loader".

ecmascript-asyncawait - Async/await for ECMAScript

  •    HTML

The introduction of Promises and Generators in ECMAScript presents an opportunity to dramatically improve the language-level model for writing asynchronous code in ECMAScript. The spec text can be found here. This proposal is implemented in a regenerator which can compile ES5 code containing async and await down to vanilla ES5 to run in existing browsers and runtimes.

Awaity.js - A functional, lightweight alternative to bluebird.js, built with async / await in mind.

  •    Javascript

A functional, lightweight alternative to bluebird.js, built with async / await in mind. Functional utility library for async / await Think lodash for promises.


AsyncEx - A helper library for async/await.

  •    CSharp

A helper library for async/await. Note: This README is for AsyncEx v5 (prerelease). For AsyncEx v4 (the current version), see here. If you are seeing an upgrade error when upgrading from v3 to v4, see this documentation.

ea-async - EA Async implements async-await methods in the JVM.

  •    Java

EA Async implements async-await methods in the JVM. It allows programmers to write asynchronous code in a sequential fashion.

aqua - :bulb: A website and user system starter

  •    Javascript

Boilerplates can be a huge time sink to maintain and I've decieded to archive this project. I started the work for upgrading to hapi v17 and using async/await instead of callbacks, that work can be found in the hapi-17-async-await branch.

async-javascript-cheatsheet - Cheatsheet for promises and async/await.

  •    HTML

This cheatsheet contains a summary of the Mastering Asynchronous JavaScript course at Frontend Armory. Want to deepen your understanding of promises, async and await? The course will guide you there through 47 live examples and exercises. To get started, just click through to the first lesson: Why async, anyway?.

AwaitKit - The ES8 Async/Await control flow for Swift

  •    Swift

AwaitKit is a powerful Swift library inspired by the Async/Await specification in ES8 (ECMAScript 2017) which provides a powerful way to write asynchronous code in a sequential manner. Internally it uses PromiseKit to create and manage promises.

requests-async - async-await support for `requests`. ✨ 🍰 ✨

  •    Python

We now recommend using httpx.AsyncClient() for async/await support with a requests-compatible API. Note: Use ipython to try this from the console, since it supports await.

emittery - Simple and modern async event emitter

  •    Javascript

It's only ~200 bytes minified and gzipped. I'm not fanatic about keeping the size at this level though.Emitting events asynchronously is important for production code where you want the least amount of synchronous operations.

trio - Trio – Pythonic async I/O for humans and snake people 🐍

  •    Python

The Trio project's goal is to produce a production-quality, permissively licensed, async/await-native I/O library for Python. Like all async libraries, its main purpose is to help you write programs that do multiple things at the same time with parallelized I/O. A web spider that wants to fetch lots of pages in parallel, a web server that needs to juggle lots of downloads and websocket connections at the same time, a process supervisor monitoring multiple subprocesses... that sort of thing. Compared to other libraries, Trio attempts to distinguish itself with an obsessive focus on usability and correctness. Concurrency is complicated; we try to make it easy to get things right. Trio was built from the ground up to take advantage of the latest Python features, and draws inspiration from many sources, in particular Dave Beazley's Curio. The resulting design is radically simpler than older competitors like asyncio and Twisted, yet just as capable. Trio is the Python I/O library I always wanted; I find it makes building I/O-oriented programs easier, less error-prone, and just plain more fun. Perhaps you'll find the same.

async/await C# Samples

  •    

Project demonstrating new C# feature - async and await. You can find here several solutions to make UI calls asynchronous: APM, EAP and async.

bent - Functional HTTP client for Node.js w/ async/await.

  •    Javascript

Functional HTTP client for Node.js w/ async/await. As you can see, bent is a function that returns an async function.

async-io-demo - demo for rust asynchronous io: from mio to stackless coroutine

  •    Rust

2019 is approaching. The rust team keeps their promise about asynchronous IO: async is introduced as keywords, Pin, Future, Poll and await! is introduced into standard library. I have never used rust for asynchronous IO programming earlier, so I almost know nothing about it. However, I would use it for a project recently but couldn't find many documents that are remarkably helpful for newbie of rust asynchronous programming.

posterus - Composable async primitives (futures) with cancelation, control over scheduling, and coroutines

  •    Javascript

Posterus is a library of promise-like asynchronous primitives (futures) that support cancelation. Futures compose just like promises, but can also be cleanly shut down, aborting pending operations and freeing resources. Posterus also exposes its inner scheduling capabilities, allowing you to "opt out" of asynchrony when needed (motivating example).

co - The ultimate generator based flow-control goodness for nodejs (supports thunks, promises, etc)

  •    Javascript

Generator based control flow goodness for nodejs and the browser, using promises, letting you write non-blocking code in a nice-ish way.co@4.0.0 has been released, which now relies on promises. It is a stepping stone towards the async/await proposal. The primary API change is how co() is invoked. Before, co returned a "thunk", which you then called with a callback and optional arguments. Now, co() returns a promise.