RootTaskREPL.jl

Run the the REPL backend on the root Task
Author mkitti
Popularity
1 Star
Updated Last
3 Years Ago
Started In
March 2020

RootTaskREPL.jl

Lifecycle Build Status codecov.io

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)

Usage:

julia -e "import RootTaskREPL"

julia-root> Base.roottask === Base.current_task()
true

Advanced Usage:

ROOTTASKREPL_ON_INIT=0 julia -e \
"import RootTaskREPL; RootTaskREPL.run_main_repl()"

Licensed under MIT "Expat" License. See License.md for details.