Skip to content

Commit

Permalink
document new behavior of addprocs
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaykm committed Aug 12, 2019
1 parent ca5761f commit ae9a304
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stdlib/Distributed/src/cluster.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ if istaskdone(t) # Check if `addprocs` has completed to ensure `fetch` doesn't
end
end
```
Only IDs of workers successfully launched and connected to are returned from a
call to `addprocs`. Therefore it is always a good idea to check the return value
and confirm if the requested number of processes were indeed added.
"""
function addprocs(manager::ClusterManager; kwargs...)
init_multi()
Expand Down

0 comments on commit ae9a304

Please sign in to comment.