Pause the main thread during the execute callback function
Pause the main thread during the execute callback function Question: I am trying to use page.on to listening certain event, and once it is triggered I want to use callback function to handle it and pause the main thread operation till the callback finished. How can I achieve that? So far it is what I …