I have an Angular7
client application which consumes a webAPI. I want to call a webAPI method again and again, and I want to display the output of that API method call on UI on each call.
If I do this using a while loop I won't be able to display continuously and the application will get hang. So decided to do this with thread but I don't know how to implement thread in TypeScript
.