[Error] Calling function of a dict from in a Task

You can use

julia> t = @async while true
   for (k, (f, args)) in d
      println(Base.invokelatest(f, args...))
   end
   sleep(2)
end

You can read Methods · The Julia Language and google around for “julia world age” to find out more.

2 Likes