Recently libuv has been used. what do you think of this asynchronous programming method, which uses callbacks extensively?

  c++, question

Recently, libuv is being used, which is an asynchronous programming method that uses callbacks in a large amount. what are the advantages of this method compared with the traditional sequential programming method? many callback function interfaces are restricted and cannot be defined at will. the program execution order has also changed to jump around.

What do you think, do you use libuv more?

Think about whether you can afford a thread to read and write a time-consuming IO without libuv. Although I have not used libuv, I understand his design concept, which is that IO processing is asynchronous. although we are all synchronous when processing the reading and writing of a file in other languages, it is hard to avoid blocking the current thread (although you can drive a thread, that is another matter).