Async While Loop Javascript Break Syntax In C