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

vf page value return from controller which is having future method

in a vf page there is an action function which call a method which is having future annotation and the controller returns some value to the page. If salesforce resource are not available at that particular time then what will happen to the page. whether we get any errors or it will wait for the salesforce resource.
vishal negandhi 7vishal negandhi 7
why would you use a future method for such a scenario?
Future method, as the name suggests, is for asynchronous process - meaning where the user doesn't have to wait for the action to be completed. 
However, in your case, as you pointing out you're waiting or trying to understand how much to wait for the transaction to be completed. 
I'd suggest this to be a non-future method.