Open coodoo opened 6 years ago
From a first glance of the signature
asyncIterator<T>(triggers: string | string[]): AsyncIterator<T>;
Seems it's more like a register method to add one or more event names to listen to, does it make sense to consider renaming it to just that?
register
I feel like that would make it sound like something where you attach an event handler, instead of what it actually does. Also, I don't think this is a good reason to break backwards compatibility.
From a first glance of the signature
Seems it's more like a
register
method to add one or more event names to listen to, does it make sense to consider renaming it to just that?