Skip to content

Latest commit

 

History

History

transducers-async

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@thi.ng/transducers-async

npm version npm downloads Mastodon Follow

Note

This is one of 199 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

Async versions of various highly composable transducers, reducers and iterators. This is a support package for @thi.ng/transducers.

Evaluators

Generators & iterators

Combinators

Transducers

Reducers

Status

ALPHA - bleeding edge / work-in-progress

Search or submit any issues for this package

Related packages

  • @thi.ng/csp - Primitives & operators for Communicating Sequential Processes based on async/await and async iterables
  • @thi.ng/fibers - Process hierarchies & operators for cooperative multitasking
  • @thi.ng/rstream - Reactive streams & subscription primitives for constructing dataflow graphs / pipelines

Installation

yarn add @thi.ng/transducers-async

ESM import:

import * as txa from "@thi.ng/transducers-async";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/transducers-async"></script>

JSDelivr documentation

For Node.js REPL:

const txa = await import("@thi.ng/transducers-async");

Package sizes (brotli'd, pre-treeshake): ESM: 3.20 KB

Dependencies

Note: @thi.ng/api is in most cases a type-only import (not used at runtime)

Usage examples

Two projects in this repo's /examples directory are using this package:

Screenshot Description Live demo Source
CSP channel-based event handling, async transducers & reactive UI components Demo Source
Basic & barebones usage of async iterables in thi.ng/rdom Demo Source

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-transducers-async,
  title = "@thi.ng/transducers-async",
  author = "Karsten Schmidt",
  note = "https://thi.ng/transducers-async",
  year = 2018
}

License

© 2018 - 2024 Karsten Schmidt // Apache License 2.0