Skip to content

Commit ff8689a

Browse files
authored
Merge pull request #131 from JuliaLang/spawnat-docs
Document that `@spawnat :any` doesn't do load-balancing
2 parents 51e5297 + ba3c843 commit ff8689a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/macros.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ end
5656
5757
Create a closure around an expression and run the closure
5858
asynchronously on process `p`. Return a [`Future`](@ref) to the result.
59+
5960
If `p` is the quoted literal symbol `:any`, then the system will pick a
60-
processor to use automatically.
61+
processor to use automatically. Using `:any` will not apply any form of
62+
load-balancing, consider using a [`WorkerPool`](@ref) and [`remotecall(f,
63+
::WorkerPool)`](@ref) if you need load-balancing.
6164
6265
# Examples
6366
```julia-repl

0 commit comments

Comments
 (0)