Starts fn(args) in a logical thread and will receive a LinkTerminated message when the operation terminates.
Tid spawnLinked(F, T...) (
if (isSpawnable!(F, T));
Executes the supplied function in a new logical thread represented by Tid. This new thread is linked to the calling thread so that if either it or the calling thread terminates a LinkTerminated message will be sent to the other, causing a LinkTerminated exception to be thrown on receive(). The owner relationship from spawn() is preserved as well, so if the link between threads is broken, owner termination will still result in an OwnerTerminated exception to be thrown on receive().
|fn||The function to execute.|
|args||Arguments to the function.|
A Tid representing the new thread.
Sean Kelly, Alex Rønne Petersen, Martin Nowak