Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
With that commit, `Task` won't run in the latest global world age, so we
want to add manual `invokelatest` to dynamically update `handlers`.
  • Loading branch information
aviatesk authored Sep 16, 2021
1 parent e721756 commit 37bb251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/comm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand All @@ -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...)
Expand Down

0 comments on commit 37bb251

Please sign in to comment.