ThreadId package:immortal

Get the ThreadId of the immortal thread. The ThreadId can be used to throw asynchronous exception to interrupt the computation. This won't kill the thread, however — even if the exception is not handled, the computation will be simply restarted.