What is the reason to invoke the prepare handle callback
and the check handle callback
in the libuv event loop?
Asked
Active
Viewed 455 times
1 Answers
1
The i/o operations happen between those 2, so you may want to perform some operation before blocking for i/o (prepare handles), and after i/o (check handles).
This diagram illustrates how the libuv event loop operates internally: http://docs.libuv.org/en/v1.x/design.html#the-i-o-loop

saghul
- 1,990
- 1
- 13
- 15
-
Can you give example for one such task? – Suraj Jain Apr 06 '20 at 11:50