⚡ 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 Each and What.

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

Popular posts from this blog

✨ Bridging Natural Language and Code

⚡ Early vs. Late Restriction

🧱 v0.0.0-dev.1