From abf38b9f188a31ebac07cd8a9991d2a641d078bb Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Mon, 20 Jan 2025 16:10:29 +0100 Subject: [PATCH] Document that `@spawnat :any` doesn't do load-balancing Instead we point users to `WorkerPool`, which will do load-balancing. --- src/macros.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/macros.jl b/src/macros.jl index c89e69e..c58faf6 100644 --- a/src/macros.jl +++ b/src/macros.jl @@ -56,8 +56,11 @@ end Create a closure around an expression and run the closure asynchronously on process `p`. Return a [`Future`](@ref) to the result. + If `p` is the quoted literal symbol `:any`, then the system will pick a -processor to use automatically. +processor to use automatically. Using `:any` will not apply any form of +load-balancing, consider using a [`WorkerPool`](@ref) and [`remotecall(f, +::WorkerPool)`](@ref) if you need load-balancing. # Examples ```julia-repl