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! ❤️
Async versions of various highly composable transducers, reducers and iterators. This is a support package for @thi.ng/transducers.
comp()
filter()
map()
mapcat()
multiplex()
multiplexObj()
partition()
take()
throttle()
throttleTime()
ALPHA - bleeding edge / work-in-progress
Search or submit any issues for this package
- @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
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>
For Node.js REPL:
const txa = await import("@thi.ng/transducers-async");
Package sizes (brotli'd, pre-treeshake): ESM: 3.20 KB
Note: @thi.ng/api is in most cases a type-only import (not used at runtime)
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 |
TODO
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
}
© 2018 - 2024 Karsten Schmidt // Apache License 2.0