Thank You for your response.......
As I mentioned before , I am dealing with loading of map..... all the objects that loads apart from maps complete pretty quickly.
There is a "loading" bar that disappear after the loading of the map is complete. Therefore i was trying to come up with a code that verifies That this object "Loading Bar" is no longer present in screen.
The sample code that I wrote "with alterts" is just for testing purposes.