multithreading - How to Notify main thread that all Tasks inside async method are finished -


i unit testing async method further call 2 methods inside test cases want wait tasks completed method ( there may background tasks too) how should notify main thread ( 1 method called) other background tasks (async) tasks finished proceed next statement.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -