Reputation: 227
I've some articles on how the event loop works. My question is whether there's some way I can access the current queue of functions that are scheduled to be executed. Just for fun.
Upvotes: 7
Views: 2948
Reputation: 26547
Not normally, it's all behind the scenes.
The only way you could do it would be to overload the functions like addEventListener
and dispatch
so you can add in some of your own logic and then watch them, but that would be a lot of work "just for fun".
Upvotes: 3