From e3790eb54580c8db77c215ab8a4d25ac1b295f34 Mon Sep 17 00:00:00 2001 From: rofinn Date: Mon, 4 Dec 2017 12:11:29 -0600 Subject: [PATCH] Improve package load time by making `listenmod` asynchronous. --- src/require.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/require.jl b/src/require.jl index 99c6826..c1fa7f7 100644 --- a/src/require.jl +++ b/src/require.jl @@ -49,7 +49,7 @@ end macro require(mod, expr) ex = quote - listenmod($(QuoteNode(mod))) do + @schedule listenmod($(QuoteNode(mod))) do withpath(@__FILE__) do err($(current_module()), $(string(mod))) do $(esc(:(eval($(Expr(:quote, Expr(:block,