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 1a4b0c6 commit d70bcbeCopy full SHA for d70bcbe
src/require.jl
@@ -13,7 +13,7 @@ const _callbacks = Dict{PkgId, Vector{Function}}()
13
callbacks(pkg) = get!(()->[], _callbacks, pkg)
14
15
listenpkg(@nospecialize(f), pkg) =
16
- loaded(pkg) ? f() : push!(callbacks(pkg), f)
+ loaded(pkg) ? Base.invokelatest(f) : push!(callbacks(pkg), f)
17
18
function loadpkg(pkg)
19
if haskey(_callbacks, pkg)
0 commit comments