You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; this returns a list of all the pages i.e a list of ListObjectsV2Output that are lazily fetched
43
45
```
44
46
45
47
## Paginators
46
48
47
-
In the Go sdk paginators use a function argument which is called on each page and returns a boolean that tells when to stop iterating.
48
-
That behaviour would be really tricky to implement so instead the paginators return a list of all the pages.
49
+
In the Go sdk paginators take a function argument which is called on each page and returns a boolean that tells when to stop iterating, and the paginator itself doesn't return anything.
50
+
For example the signature of `ListObjectsV2Pages` is
Whereas in the Python sdk, the paginators are instead generators that lazily loads the pages.
55
+
This approach is more functional and has been copied here.
56
+
To use it you need to use the `get-paginator` fn from the `pod.tzzh.paginator` namespace and pass the fn you need to use as an argument to `get-paginator` as shown in the example above.
0 commit comments