Hi I was wondering if there was a way of calling a function/method (preferably in Python or Java) and continue execution without waiting for it.
Example:
In Java, there's a standard idiom: create a thread and run it:
new Thread() {
@Override
public void run() {
callMyFunction();
}
}.start();
Or you can create a Runnable and pass it to the thread:
Runnable caller = new Runnable() {
@Override
public void run() {
callMyFunction();
}
}
new Thread(caller).start();