{"action":"opened","issue":{"url":"https://api.github.com/repos/dharFr/grunt-wkhtmltopdf/issues/11","labels_url":"https://api.github.com/repos/dharFr/grunt-wkhtmltopdf/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/dharFr/grunt-wkhtmltopdf/issues/11/comments","events_url":"https://api.github.com/repos/dharFr/grunt-wkhtmltopdf/issues/11/events","html_url":"https://github.com/dharFr/grunt-wkhtmltopdf/issues/11","id":55392999,"number":11,"title":"Grunt task completes before processing is finished","user":{"login":"andyinabox","id":151084,"avatar_url":"https://avatars.githubusercontent.com/u/151084?v=3","gravatar_id":"","url":"https://api.github.com/users/andyinabox","html_url":"https://github.com/andyinabox","followers_url":"https://api.github.com/users/andyinabox/followers","following_url":"https://api.github.com/users/andyinabox/following{/other_user}","gists_url":"https://api.github.com/users/andyinabox/gists{/gist_id}","starred_url":"https://api.github.com/users/andyinabox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyinabox/subscriptions","organizations_url":"https://api.github.com/users/andyinabox/orgs","repos_url":"https://api.github.com/users/andyinabox/repos","events_url":"https://api.github.com/users/andyinabox/events{/privacy}","received_events_url":"https://api.github.com/users/andyinabox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-25T02:35:59Z","updated_at":"2015-01-25T02:35:59Z","closed_at":null,"body":"I've noticed that there is a delay between when the task is complete and when the actual PDF file is finished being generated. It seems this could be fixed using [`this.async`](http://gruntjs.com/api/inside-tasks) within the Grunt task ([usage example](https://quickleft.com/blog/grunt-js-custom-tasks/))."}}