How to sleep using sync and await approach?