⚡ v0.0.0-dev.5 — Async Iteration Arrives
⚡ v0.0.0-dev.5 — Async Iteration Arrives
Bringing fluent, declarative power to promises and async iterables.
π What’s New
The @fizzwiz/fluent library now supports asynchronous iteration with the brand-new
π AsyncEach class.
Just like Each, AsyncEach is:
- Lazy – nothing runs until you iterate.
- Composable – chain transformations fluently.
- Declarative – describe what, not how.
But now it works directly with promises and async iterables.
π Highlights
- Async pipelines: fluently compose transformations over async data.
- Promise bridging: work with iterables of Promises before they resolve.
- Same 9 core methods as
EachandWhat.
This release unlocks natural, fluent workflows for both synchronous and asynchronous data.
π§© Example
import { AsyncEach } from "@fizzwiz/fluent";
const seq = AsyncEach.of(
Promise.resolve(1),
Promise.resolve(2),
Promise.resolve(3)
).sthen(x => x * 2);
for await (const value of seq) {
console.log(value);
// => 2, 4, 6
}
π Learn More
Check out the full API reference:
π The AsyncEach Class
And revisit the foundation:
➰ The Each Class
❓ The What Class
✨ With
AsyncEach, fluent thinking finally spans sync and async worlds.
Write once, flow everywhere.
— @fizzwiz ✨
Comments
Post a Comment