Async While Loop Javascript Break And Continue In Python