Changed thread.sleep to task.delay (#3017)
Changed thread.sleep to task.delay (#3017)

Co-authored-by: Anton Shkilevich <2802349627c56356df88b3c5b5c478180690c567@microsoft.com>
Microsoft/vsts-agent,Microsoft/vsts-agent,Microsoft/vsts-agent,Microsoft/vsts-agent