{"action":"reopened","issue":{"url":"https://api.github.com/repos/teambition/gulp-sequence/issues/9","repository_url":"https://api.github.com/repos/teambition/gulp-sequence","labels_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/9/comments","events_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/9/events","html_url":"https://github.com/teambition/gulp-sequence/issues/9","id":137648351,"number":9,"title":"Not waiting for previous OS delete task to complete?","user":{"login":"karland","id":4803370,"avatar_url":"https://avatars.githubusercontent.com/u/4803370?v=3","gravatar_id":"","url":"https://api.github.com/users/karland","html_url":"https://github.com/karland","followers_url":"https://api.github.com/users/karland/followers","following_url":"https://api.github.com/users/karland/following{/other_user}","gists_url":"https://api.github.com/users/karland/gists{/gist_id}","starred_url":"https://api.github.com/users/karland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karland/subscriptions","organizations_url":"https://api.github.com/users/karland/orgs","repos_url":"https://api.github.com/users/karland/repos","events_url":"https://api.github.com/users/karland/events{/privacy}","received_events_url":"https://api.github.com/users/karland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-01T18:18:05Z","updated_at":"2016-03-30T08:47:24Z","closed_at":null,"body":"Hi, I have the following pretty standard setup. Somehow, gulp-sequence is not working as expected. It seems that the `clean:all` process gets already the finished information even though the OS is still deleting files and has not yet finished it. (By the way, I am running Windows 7). As a consequence, I get errors later on `\"no such file or directory\". The following tasks are trying to write to a directory which the OS has in the meantime deleted. When I run the tasks manually after each other, everything works as expected. Thanks.\r\n\r\n```js\r\nvar config         = require('../config')\r\nvar gulp           = require('gulp');\r\nvar gulpSequence   = require('gulp-sequence').use(gulp);\r\nvar del            = require('del');\r\n\r\ngulp.task('new', function(callback) {\r\n    gulpSequence(['clean:all'], ['favicons:all', 'images', 'fonts', 'site', 'sass', 'javascript', 'metalsmith'], 'watch')(callback);\r\n});\r\n\r\ngulp.task('clean:all', function() {\r\n  del(config.delete.build);\r\n  del(config.delete.deploy);\r\n});\r\n```"}}