0.3.1 • Published 7 months ago
@eventkit/async-observable v0.3.1
@eventkit/async-observable is the package that provides the AsyncObservable class. This is exported separately from the main package to separate the implementation details of the observable pattern from the rest of the API.
Installation
npm i @eventkit/async-observableUsing a CDN
This package also bundles a browser-friendly version that can be accessed using a CDN like unpkg.
<!-- Development -->
<script src="https://unpkg.com/@eventkit/async-observable/dist/index.global.js"></script>
<!-- Minified -->
<script src="https://unpkg.com/@eventkit/async-observable/dist/index.global.min.js"></script>When imported this way, all exports are available on the eventkit.asyncObservable global variable.
const { AsyncObservable } = eventkit.asyncObservable;