Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/async/modules/events

core/async/modules/events

This module provides Async wrappers for event emitters.

import Async from 'core/async';
import { EventEmitter2 as EventEmitter } from 'eventemitter2';

const
emitter = new EventEmitter(),
watcher = new Async();

watcher.on(emitter, 'foo', (e) => {
console.log(e);
});

emitter.emit('foo', 'bar');

Index

References

Re-exports AsyncCb
Re-exports AsyncCbOptions
Re-exports AsyncCbOptionsSingle
Re-exports AsyncIdleOptions
Re-exports AsyncOnOptions
Re-exports AsyncOnceOptions
Re-exports AsyncOptions
Re-exports AsyncOptionsForWrappers
Re-exports AsyncPromiseOptions
Re-exports AsyncPromisifyOnceOptions
Re-exports AsyncProxyOptions
Re-exports AsyncRequestIdleCallbackOptions
Re-exports AsyncRequestOptions
Re-exports AsyncWaitOptions
Re-exports AsyncWorkerOptions
Re-exports BoundFn
Re-exports CancelablePromise
Re-exports ClearFn
Re-exports ClearOptions
Re-exports ClearOptionsId
Re-exports ClearProxyOptions
Re-exports ClearReason
Re-exports DataProviderBodyMethodsToReplace
Re-exports DataProviderMethodsToReplace
Re-exports DataProviderQueryMethodsToReplace
Re-exports EmitLikeEvents
Re-exports Event
Re-exports EventEmitterLike
Re-exports EventEmitterLikeP
Re-exports EventEmitterOverwritten
Re-exports EventEmitterWrapper
Re-exports EventId
Re-exports FullAsyncOptions
Re-exports FullClearOptions
Re-exports GlobalCache
Re-exports Group
Re-exports IdObject
Re-exports IdleCb
Re-exports Join
Re-exports Label
Renames and re-exports Namespaces
Re-exports LocalCache
Re-exports MarkReason
Re-exports Namespace
Re-exports Namespaces
Re-exports PromiseLikeP
Re-exports ProxyCb
Re-exports ReadonlyEventEmitterWrapper
Re-exports StrictClearOptions
Re-exports StrictClearOptionsId
Re-exports Task
Re-exports TaskCtx
Re-exports TimerId
Re-exports WorkerLike
Re-exports WorkerLikeP
Re-exports WrappedAsyncStorage
Re-exports WrappedAsyncStorageNamespace
Re-exports WrappedDataProvider
Re-exports asyncCounter
Re-exports isAsyncOptions
Re-exports isEvent
Re-exports isParams
Re-exports isPromisifyLinkName
Re-exports isPromisifyNamespace
Re-exports isZombieGroup