function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mddean17mddean17 

Execution time of Future annotation

Hi,
 
Is there any guarantee on when a method marked future will execute?
 
Let's say I want to invoke a web service asynchronously from Apex using future. The user waits on the page while I poll a field which is updated with the service return value. But if my future block doesn't execute for two minutes this won't work well for me.
 
Thanks, any insight is much appreciated.
cheenathcheenath
There is no guarantee when the request will be executed.
It can easily be more than two minutes.