Skip to content

Commit 4d2fe82

Browse files
authored
docs: await consolidated helper (#152)
1 parent a413a54 commit 4d2fe82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cookbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ network requests.
103103
```js{3}
104104
import * as zarr from "zarrita";
105105
106-
let store = zarr.withConsolidated(
106+
let store = await zarr.withConsolidated(
107107
new zarr.FetchStore("https://localhost:8080/data.zarr")
108108
);
109109
@@ -126,7 +126,7 @@ Use `tryWithConsolidated` for uncertain cases; it leverages consolidated
126126
metadata if available.
127127

128128
```js
129-
let store = zarr.tryWithConsolidated(
129+
let store = await zarr.tryWithConsolidated(
130130
new zarr.FetchStore("https://localhost:8080/data.zarr"),
131131
);
132132
```

0 commit comments

Comments
 (0)