xarray.Variable.load_async#
- async Variable.load_async(**kwargs)[source]#
Trigger and await asynchronous loading of data into memory and return this variable.
Data will be computed and/or loaded from disk or a remote source.
Unlike
.compute, the original variable is modified and returned.Only works when opening data lazily from IO storage backends which support lazy asynchronous loading. Otherwise will raise a NotImplementedError.
Note users are expected to limit concurrency themselves - xarray does not internally limit concurrency in any way.
- Parameters:
**kwargs (
dict) – Additional keyword arguments passed on todask.array.compute.- Returns:
object (
Variable) – Same object but with lazy data as an in-memory array.
See also
dask.array.compute,Variable.load,Variable.compute,DataArray.load_async,Dataset.load_async