@@ -327,15 +327,15 @@ function start_repl_backend(repl_channel::Channel{Any}, response_channel::Channe
327
327
# Maintain legacy behavior of asynchronous backend
328
328
backend = REPLBackend (repl_channel, response_channel, false )
329
329
# Assignment will be made twice, but will be immediately available
330
- backend. backend_task = Threads. @spawn start_repl_backend (backend; get_module)
330
+ backend. backend_task = Threads. @spawn :interactive start_repl_backend (backend; get_module)
331
331
return backend
332
332
end
333
333
334
334
"""
335
335
start_repl_backend(backend::REPLBackend)
336
336
337
337
Call directly to run backend loop on current Task.
338
- Use Threads.@spawn for run backend on new Task.
338
+ Use Threads.@spawn :interactive for run backend on new Task.
339
339
340
340
Does not return backend until loop is finished.
341
341
"""
@@ -495,12 +495,12 @@ function run_repl(repl::AbstractREPL, @nospecialize(consumer = x -> nothing); ba
495
495
end
496
496
get_module = () -> active_module (repl)
497
497
if backend_on_current_task
498
- t = Threads. @spawn run_frontend (repl, backend_ref)
498
+ t = Threads. @spawn :interactive run_frontend (repl, backend_ref)
499
499
errormonitor (t)
500
500
Base. _wait2 (t, cleanup)
501
501
start_repl_backend (backend, consumer; get_module)
502
502
else
503
- t = Threads. @spawn start_repl_backend (backend, consumer; get_module)
503
+ t = Threads. @spawn :interactive start_repl_backend (backend, consumer; get_module)
504
504
errormonitor (t)
505
505
Base. _wait2 (t, cleanup)
506
506
run_frontend (repl, backend_ref)
@@ -1266,7 +1266,7 @@ function setup_interface(
1266
1266
end
1267
1267
# load Pkg on another thread if available so that typing in the dummy Pkg prompt
1268
1268
# isn't blocked, but instruct the main REPL task to do the transition via s.async_channel
1269
- t_replswitch = Threads. @spawn begin
1269
+ t_replswitch = Threads. @spawn :default begin
1270
1270
REPLExt = load_pkg ()
1271
1271
if REPLExt isa Module && isdefined (REPLExt, :PkgCompletionProvider )
1272
1272
put! (s. async_channel,
0 commit comments