diff --git a/README.md b/README.md index a899fcf..84bbe73 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ The context managers can be used the same way in both `flow` run contexts and `t ``` For more information, visit the docs on [Waiting on Futures](https://docs.dask.org/en/stable/futures.html#waiting-on-futures). -There is also an equivalent `async` version, namely `get_async_dask_client`. +There is also an equivalent context manager for asynchronous tasks and flows: `get_async_dask_client`. ```python import asyncio diff --git a/prefect_dask/utils.py b/prefect_dask/utils.py index f3fbb06..39aaad2 100644 --- a/prefect_dask/utils.py +++ b/prefect_dask/utils.py @@ -61,7 +61,7 @@ def get_dask_client( to the full cluster. Therefore, it will attempt perform work within the worker itself serially, and potentially overwhelming the single worker. - For async, there is `get_async_dask_client`. + When in an async context, we recommend using `get_async_dask_client` instead. Args: timeout: Timeout after which to error out; has no effect in