Run task asynchronously

runTask is deprecated