I want to do something like this
int x = 2;
int y = 3;
int performAction(int var1, int var2) {
return var1 + var2;
}
//accepts function with parameters as parameter
void runLater(performAction(x, y));
The values of x and y could change before performAction
is run.