RootTaskREPL creates a Julia REPL where the REPL backend runs on the current Task and the frontend runs on a new task. This allows the backend to execute on the root Task if used at startup.
If initialized on the root Task, the module will automatically start the REPL.
This is useful for packages that must be initialized on the root Task on some platforms (e.g. JavaCall)
julia -e "import RootTaskREPL" julia-root> Base.roottask === Base.current_task() true
ROOTTASKREPL_ON_INIT=0 julia -e \ "import RootTaskREPL; RootTaskREPL.run_main_repl()"
Licensed under MIT "Expat" License. See License.md for details.