Terminators.jl: adding timeout to your code using Terminators Terminators.withtimeout(1) do sleep(3) # too slow, the process will be terminated end