0

What is the reason to invoke the prepare handle callback and the check handle callback in the libuv event loop?

ftes
  • 601
  • 1
  • 7
  • 14

1 Answers1

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