From 9699c8b928b3f75129803c9afdd8e4c2214e08ba Mon Sep 17 00:00:00 2001 From: Likan Zhan Date: Mon, 13 Jul 2020 17:02:31 +0800 Subject: [PATCH] Update cluster.jl To make the highlighting style consistent. --- stdlib/Distributed/src/cluster.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/Distributed/src/cluster.jl b/stdlib/Distributed/src/cluster.jl index 8c5bfa102b387..34fe35d54543d 100644 --- a/stdlib/Distributed/src/cluster.jl +++ b/stdlib/Distributed/src/cluster.jl @@ -411,19 +411,19 @@ if launching workers programmatically, execute `addprocs` in its own task. # Examples -``` +```julia # On busy clusters, call `addprocs` asynchronously t = @async addprocs(...) ``` -``` +```julia # Utilize workers as and when they come online if nprocs() > 1 # Ensure at least one new worker is available .... # perform distributed execution end ``` -``` +```julia # Retrieve newly launched worker IDs, or any error messages if istaskdone(t) # Check if `addprocs` has completed to ensure `fetch` doesn't block if nworkers() == N