Morsel.jl
Morsel.jl copied to clipboard
How do you stop the server in the REPL?
julia> start(app,8000)
Morsel is listening on 8000...
^C doesn't terminate it. At this time, I have to kill the REPL to stop the server.
I have the same question.
Here,
It called @async process_client(.....)
and in process_client it did "try, catch , rethrow" things.
When we type "ctrl + c", it is a error. But it hasn't been throw (immediately) up somehow ...
The code below will produce similar problem ("ctrl + c" cause the code stop, but not immediately), please try this.
function inter()
try
catch e
rethrow()
end
end
function async_inter()
while true
@async inter()
end
end
async_inter()
Also encountering this. cc: @JeffBezanson