Skip to content

Commit dfaac7e

Browse files
committed
note about users being responsible for limiting concurrency
1 parent 3bd7b8a commit dfaac7e

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

doc/whats-new.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ New Features
1414
~~~~~~~~~~~~
1515

1616
- Added new asynchronous loading methods :py:meth:`Dataset.load_async`, :py:meth:`DataArray.load_async`, :py:meth:`Variable.load_async`.
17+
Note that users are expected to limit concurrency themselves - xarray does not internally limit concurrency in any way.
1718
(:issue:`10326`, :pull:`10327`) By `Tom Nicholas <https://github.com/TomNicholas>`_.
1819
- :py:meth:`DataTree.to_netcdf` can now write to a file-like object, or return bytes if called without a filepath. (:issue:`10570`)
1920
By `Matthew Willson <https://github.com/mjwillson>`_.

xarray/core/dataarray.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,8 @@ async def load_async(self, **kwargs) -> Self:
11801180
Only works when opening data lazily from IO storage backends which support lazy asynchronous loading.
11811181
Otherwise will raise a NotImplementedError.
11821182
1183+
Note users are expected to limit concurrency themselves - xarray does not internally limit concurrency in any way.
1184+
11831185
Parameters
11841186
----------
11851187
**kwargs : dict

xarray/core/dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ async def load_async(self, **kwargs) -> Self:
580580
Only works when opening data lazily from IO storage backends which support lazy asynchronous loading.
581581
Otherwise will raise a NotImplementedError.
582582
583+
Note users are expected to limit concurrency themselves - xarray does not internally limit concurrency in any way.
584+
583585
Parameters
584586
----------
585587
**kwargs : dict

xarray/core/variable.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,8 @@ async def load_async(self, **kwargs) -> Self:
10181018
Only works when opening data lazily from IO storage backends which support lazy asynchronous loading.
10191019
Otherwise will raise a NotImplementedError.
10201020
1021+
Note users are expected to limit concurrency themselves - xarray does not internally limit concurrency in any way.
1022+
10211023
Parameters
10221024
----------
10231025
**kwargs : dict

0 commit comments

Comments
 (0)