@future methods are great, but sometimes you want to call the method synchronously. Propose a convention whereby all future methods do nothing more than call another non-future method. Naming convention for future/non-future method pairs TBC.
e.g.
BAD
@future
public static void myMethod(Account myAccount) {
// do a whole bunch of things with myAccount
}
GOOD
@future
public static void myMethod_future(Account myAccount) {
myMethod(myAccount);
}
public static void myMethod(Account myAccount) {
// do a whole bunch of things with myAccount
}
@futuremethods are great, but sometimes you want to call the method synchronously. Propose a convention whereby all future methods do nothing more than call another non-future method. Naming convention for future/non-future method pairs TBC.e.g.
BAD
GOOD