I have the following code:
myfun <- function() {
fun2()
return(1+1)
}
I want fun2() is invoked and then moved to the next lines without waiting for the result. Function fun2 does not return anything and I don't care when it finishes, I just need to launch it. What is the best way to achieve it? Parallel process, multithreading, async call? Any code samples are appreciated.
See Question&Answers more detail:os