I have 2 functions. I want run them one by one but while first function is done , second function must wait for 1-2 seconds. I tried Future.delayed for this but it did not w