evelynhathaway / async-iterator-channel

⚠️📢 An observable-like experiment I made to learn async iterators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Async Iterator Channel

status: experimental license

An experiment I made to learn async iterators added in Node.js v10.0.0. It allows an implementer to create a channel consumers can subscribe to (like observables or events) and use for await syntax instead of callbacks.

Given that there are existing mature APIs and libraries that fit this use case, don't use this in your codebase. Instead, take a look at:

About

⚠️📢 An observable-like experiment I made to learn async iterators

License:MIT License


Languages

Language:JavaScript 100.0%