From e8caf801fe0714db4b029cc148b4a1204adb76bc Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Thu, 16 Sep 2021 17:02:23 +0900 Subject: [PATCH] update to https://github.com/JuliaLang/julia/pull/41449 With that commit, `Task` won't run in the latest global world age, so we want to add manual `invokelatest` to dynamically update `handlers`. --- src/comm.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm.jl b/src/comm.jl index d1e637be..6e559c56 100644 --- a/src/comm.jl +++ b/src/comm.jl @@ -101,7 +101,7 @@ function serve(port; kws...) @async while isopen(sock) @ierrs let msg = JSON.parse(sock) - @async @ierrs handlemsg(msg...) + @async @ierrs Base.invokelatest(handlemsg, msg...) end end initialise(; kws...) @@ -112,7 +112,7 @@ function connect(host, port; kws...) @async while isopen(sock) @ierrs let msg = JSON.parse(sock) - @async @ierrs handlemsg(msg...) + @async @ierrs Base.invokelatest(handlemsg, msg...) end end initialise(; kws...)