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:
def a():
b() #call a function, b()
return "something"
def b():
#something that takes a really long time
Run it in a new thread. Learn about multithreading in java here and python multithreading here
Java example:
The WRONG way … by subclassing Thread
The RIGHT way … by supplying a Runnable instance