I'm looking for a way to reliably kill asynchronous tasks. My code is roughly:
task = @async call_external_program_that_may_never_return #do stuff of interest exit(0) #please really exit now, no matter what Currently, if the external program never returns, neither does my program, which is really bad. Note that I have no control over the external program -- I can't add an exit condition. I want a way to ensure the program really quits no matter what. I have tried throwto(task, InterruptException()) interrupt() These don't actually stop the @async code and thus prevent exiting. I'm not married to using @async, but need to run the async stuff on this process (not a worker). Thanks.