event-listener icon indicating copy to clipboard operation
event-listener copied to clipboard

[Feature] Getting the number of notified listeners back

Open jjl opened this issue 4 years ago • 2 comments

Hello!

I've just built an RWLock based around a single atomic and now I'm trying to make an async version with eventlistener. For my purposes, simply knowing if any listeners were notified would suffice, but knowing the count seems a logical extension of that.

What do you think?

jjl avatar Jul 19 '20 10:07 jjl

Actually it turns out I don't need this anymore, but I still think it's a good idea for at some point :)

jjl avatar Jul 19 '20 11:07 jjl

Seems like a reasonable addition to me :)

ghost avatar Jul 21 '20 23:07 ghost

Since we're making breaking changes anyways, it might be worthwhile to add this.

notgull avatar Nov 25 '22 00:11 notgull