I want third to wait until first and second finish execution, don't want to use delay.
Here:
function test()
{
first();
second();
third();
}
By default, it is always
synchronous. Thus, third would only be executed after first finishes and then second finishes.
Thus, no need to use any wait/delay.