R
R
Richard Hendrix2018-12-06 23:44:06
JavaScript
Richard Hendrix, 2018-12-06 23:44:06

Is it possible to observe a custom event loop in NODE.JS?

Is there any way to observe events in the event loop in NODE.JS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kositsyn, 2018-12-07
@alex_keysi

Maybe subscribe to them? And when someone emitted an event, then write to the array that the event occurred. When the event callback is completed, remove it from this array.
Or the node may have an API for reading the event loop. But third-party callbacks can also lie there. from other libraries. All sorts of fs modules
Maybe this will suit you
https://stackoverflow.com/questions/30757182/how-t...
There api with libuv. For reading from event loop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question