You can use @spawn instead:
C_task = Threads.@spawn inv(A) # starts processing on a different thread
D = inv(B) # do second piece of work on main thread
C = fetch(C_task) # waits until spawned thread has finished
You can use @spawn instead:
C_task = Threads.@spawn inv(A) # starts processing on a different thread
D = inv(B) # do second piece of work on main thread
C = fetch(C_task) # waits until spawned thread has finished