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
sd2008sd2008 

Is there a way to see how many @future function calls made?

Is there a way to track how many @future function calls made and when?
Best Answer chosen by Admin (Salesforce Developers) 
Venkat PolisettVenkat Polisett

Limits.getFutureCalls(); -- Returns the number of methods with the future annotation that have been executed (not necessarily completed) in the current context. Limits.getLimitFutureCalls(); -- Returns the total number of methods with the future annotation that can be executed (not necessarily completed) in the current context.