Added an ability to pass a callback to .pause(), which will be called once all pending tasks are executed