All Projects → nicolas-van → Modern Async

nicolas-van / Modern Async

Licence: mit
A modern JavaScript tooling library for asynchronous operations using async/await and promises

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Modern Async

P Map
Map over promises concurrently
Stars: ✭ 639 (+1961.29%)
Mutual labels:  async, promises, await
Breeze
Javascript async flow control manager
Stars: ✭ 38 (+22.58%)
Mutual labels:  async, promises, await
Swimmer
🏊 Swimmer - An async task pooling and throttling utility for JS
Stars: ✭ 94 (+203.23%)
Mutual labels:  async, promises, await
Swiftcoroutine
Swift coroutines for iOS, macOS and Linux.
Stars: ✭ 690 (+2125.81%)
Mutual labels:  async, promises, await
Hydra
⚡️ Lightweight full-featured Promises, Async & Await Library in Swift
Stars: ✭ 1,954 (+6203.23%)
Mutual labels:  async, promises, await
Promise Fun
Promise packages, patterns, chat, and tutorials
Stars: ✭ 3,779 (+12090.32%)
Mutual labels:  async, promises
P Iteration
Utilities that make array iteration easy when using async/await or Promises
Stars: ✭ 337 (+987.1%)
Mutual labels:  async, await
Koahub Demo
koahub+async/await+mysql
Stars: ✭ 15 (-51.61%)
Mutual labels:  async, await
Sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.
Stars: ✭ 5,039 (+16154.84%)
Mutual labels:  async, await
Vue Skeleton Mvp
VueJs, Vuetify, Vue Router and Vuex skeleton MVP written on JavaScript using async/await built to work with API REST skeleton: https://github.com/davellanedam/node-express-mongodb-jwt-rest-api-skeleton
Stars: ✭ 406 (+1209.68%)
Mutual labels:  async, await
Micro Router
🚉 A tiny and functional router for Zeit's Micro
Stars: ✭ 621 (+1903.23%)
Mutual labels:  async, await
Async Sema
Semaphore using `async` and `await`
Stars: ✭ 326 (+951.61%)
Mutual labels:  async, await
Promise
Light and type-safe binding to JS promises
Stars: ✭ 319 (+929.03%)
Mutual labels:  async, promises
Asyncenumerable
Defines IAsyncEnumerable, IAsyncEnumerator, ForEachAsync(), ParallelForEachAsync(), and other useful stuff to use with async-await
Stars: ✭ 367 (+1083.87%)
Mutual labels:  async, await
Async Techniques Python Course
Async Techniques and Examples in Python Course
Stars: ✭ 314 (+912.9%)
Mutual labels:  async, await
Amp
A non-blocking concurrency framework for PHP applications. 🐘
Stars: ✭ 3,457 (+11051.61%)
Mutual labels:  async, promises
Asyncawaitbestpractices
Extensions for System.Threading.Tasks.Task and System.Threading.Tasks.ValueTask
Stars: ✭ 693 (+2135.48%)
Mutual labels:  async, await
Awaitkit
The ES8 Async/Await control flow for Swift
Stars: ✭ 709 (+2187.1%)
Mutual labels:  async, await
Ws Promise Client
PROJECT MOVED: https://github.com/kdex/ws-promise
Stars: ✭ 6 (-80.65%)
Mutual labels:  async, await
Genawaiter
Stackless generators on stable Rust.
Stars: ✭ 263 (+748.39%)
Mutual labels:  async, await

modern-async Tweet

GitHub Repo stars Website Node.js CI npm Coverage Status

A modern JavaScript tooling library for asynchronous operations using async/await and promises.

This library is a modernized alternative to a lot of libraries like Async.js that were created using the legacy callback style to handle asynchronous operations. Its goal is to be as complete as any of those libraries while being built from the very beginning with async/await and promises in mind.

See the documentation.

  • Exclusively uses async/await and promises in its code, tests and documentation.
  • Has low bundle size.
  • Has 100% code coverage.
  • Bundled for ESM modules, CommonJS and UMD.
  • Works in node >= 10.0 and in the vast majority of browsers (very old browser compatibility can be achieved using Babel and shims).

This project accepts feature requests !

The goal of modern-async is to be as complete as possible. I coded everything I missed in the past while developing, yet it's difficult to know what other people would really need. So if you would like some more feature the issue tracker is available. (Read also the contribution guide).

Installation

npm install --save modern-async

Or use jsDelivr to get the UMD version. The content of the library will be available under the modernAsync global variable.

Usage

import { map, asyncRoot, sleep } from 'modern-async'

// or

const { map, asyncRoot, sleep } = require('modern-async')

asyncRoot(async () => {
  const array = [1, 2, 3]
  const result = await map(array, async (v) => {
    await sleep(10)
    return v * 2
  })
  console.log(result)
})

See the documentation for the rest.

Changelog

The changelog.

Contribution Guide

The contribution guide

License

The license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].