Delegates actions to a weak set of listeners
example
import { Action, Delegate } from 'peekeasy'const set = new Set<Action<[string, string]>>(), delegate = new Delegate(set)delegate.then(async message => console.log(...message))// Hello, delegate!set.forEach(f => f('Hello,', 'delegate!'))
Rest
event senders
Private
Optional
Generated using TypeDoc
Description
Delegates actions to a weak set of listeners
example