@camunda8/orchestration-cluster-api
    Preparing search index...

    Interface EffectPaginator<TItem>

    The Effect-flavoured counterpart of a Paginator: the same three views (pages / items / toArray) over a multi-page search, as Streams and an Effect rather than async iterables and a Promise.

    Every view is lazy — a page is fetched only when pulled — and interruptible: interrupting the fiber cancels the in-flight page request rather than leaving it to settle unobserved.

    interface EffectPaginator<TItem> {
        items(): Stream<TItem, DomainError>;
        pages(): Stream<SearchResponse<TItem>, DomainError>;
        toArray(): Effect<TItem[], DomainError>;
    }

    Type Parameters

    • TItem
    Index