Suppose I start a parallel task with:
future = @spawnat :any do_very_long_time_process()
How can I stop the process using the future
?
There is Distributed.interrupt, but it needs pid
.
In other words, how can I get pid
from a future
?
Related questions:
- How to stop a task started with `@schedule` - Usage / First steps - JuliaLang
- Stop/terminate a (sub)task started with @async - Usage - JuliaLang
But these are for Task
, not Future
.