Added an ability to pass a callback to .pause(), which will be called once all pending tasks are executed
Merge pull request #1 from Ivshti/master

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