Skip to content

Commit

Permalink
Remove timeout= from docstring example for worker_client (#7497)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Jan 24, 2023
1 parent 99d4112 commit 0161991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/worker_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def worker_client(timeout=None, separate_thread=True):
Examples
--------
>>> def func(x):
... with worker_client(timeout="10s") as c: # connect from worker back to scheduler
... with worker_client() as c: # connect from worker back to scheduler
... a = c.submit(inc, x) # this task can submit more tasks
... b = c.submit(dec, x)
... result = c.gather([a, b]) # and gather results
Expand Down

0 comments on commit 0161991

Please sign in to comment.