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
SrikanthKuruvaSrikanthKuruva 

Apex Callout

I have seen the following sentence in Force.com apex code developers guide.

 

"Use the future annotation to identify methods that are executed asynchronously.When you specify future, the method executes when Salesforce has available resources."

 

Can someone please elaborate on the phrase "available resources" please?

 

 

eswarsfeswarsf

Hi Srikanth,

"Available Resources" means when SalesForce servers are not busy to handle requests.

 

Thanks,

Eswar.

kiranmutturukiranmutturu

for example if you are having a method with 2 params. suppose if you are accessing this method from one class and at the same time you need to call an another class and in that also using the same method..but the first call is in process the the method is not avaialble for you till the action is completed as it a deadlock situation. So if you can use future the when evr the resources available the it will execute with out fail. Hope you got the point