Skip to content

Commit 17c7226

Browse files
committed
fix docstring
1 parent 6febeaf commit 17c7226

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/zarr/storage/_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ def with_concurrency_limit() -> Callable[
4545
Examples
4646
--------
4747
```python
48+
import asyncio
49+
from zarr.abc.store import Store
50+
from zarr.abc.buffer import Buffer
51+
from zarr.storage._utils import with_concurrency_limit
52+
53+
async def expensive_io_operation(key: str):
54+
asyncio.sleep(10)
55+
4856
class MyStore(Store):
4957
def __init__(self, concurrency_limit: int = 100):
5058
self._semaphore = asyncio.Semaphore(concurrency_limit) if concurrency_limit else None

0 commit comments

Comments
 (0)