qmetrics.net

Async

JavaScript callback and promise async control-flow helpers

Async screenshot

Async is a utility library with roughly seventy functions for map, reduce, filter, parallel, series, waterfall, and similar asynchronous patterns in Node.js and browsers.

Overview

Async supplies higher-level helpers around Node-style callbacks where the last argument is a single callback that receives an error first and is invoked once. It covers familiar functional iterators as well as orchestration primitives such as parallel, series, and waterfall, with quick examples showing map, filter, and parallel task lists.

The package installs through npm, yarn, or direct browser bundles in a dist folder, and can be required as the full module or as per-method imports. It targets ES2015 environments in modern Node and browsers, with guidance for older runtimes via transpilation. An ES module build is included for bundlers that pick up .mjs files.

Recent versions accept native async functions anywhere a callback-based worker is expected, using return values and promise rejections instead of passing a callback. Transpiled async functions can be wrapped with asyncify. Version 3.0 allows canceling a flow by passing false as the error argument to stop remaining work.

Documentation on the project site covers stack overflow pitfalls from synchronous iteratees, multiple callback mistakes, early-exit patterns in nested flows, and cautions against mutating arrays during iteration. Community issues are encouraged when a needed helper is missing.

Async aims to be a comprehensive catalog of common asynchronous control-flow patterns rather than a single-purpose promise library.

Key features

  • About seventy async helper functions
  • Map, reduce, filter, and each iterators
  • Parallel, series, and waterfall flows
  • Node callback and async-function support
  • Per-method and full package imports
  • Browser dist and CDN bundles
  • Flow cancel via false error argument
  • npm and yarn installation

Use cases

  • Coordinating parallel IO callbacks
  • Serializing dependent async steps
  • Filtering filesystem paths asynchronously
  • Waterfall pipelines with early exit
  • Legacy Node callback refactors

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT