We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2529009 commit f5ebe9fCopy full SHA for f5ebe9f
base/precompilation.jl
@@ -1011,13 +1011,10 @@ end
1011
const register_atexit_hook = Base.OncePerProcess{Nothing}() do
1012
Base.atexit() do
1013
task = @lock BG BG.task
1014
- if task !== nothing && !istaskdone(task)
1015
- stop_background_precompile(; graceful=false)
1016
- wait(task)
1017
- end
1018
- # Safety net: ensure cursor is visible when Julia exits, in case
1019
- # background precompilation left it hidden.
1020
- stderr isa Base.TTY && print(stderr, ansi_enablecursor)
+ task === nothing && return
+ istaskdone(task) && return
+ stop_background_precompile(; graceful=false)
+ wait(task)
1021
end
1022
nothing
1023
0 commit comments