Relative Content

Tag Archive for javascripttypescriptasync-awaittimeoutes6-promise

Timeout not calling callback function in Typescript

I am creating a simple function to wait until a flag is updated in typescript. But when I call await until() . It only gets called once and the timeout never calls the function again. What am I doing wrong :