override fun allSeq()

in teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/coroutines/implementation.kt [735:746]


    override fun allSeq(): Sequence<Investigation> {
        val locator = getLocator()
        val flow = lazyPagingSequence(instance,
            getFirstBean = { instance.service.investigations(locator) },
            convertToPage = { investigationsBean ->
                Page(
                    data = investigationsBean.investigation.map { InvestigationImpl(it, true, instance) },
                    nextHref = investigationsBean.nextHref
                )
            })
        return limitResults?.let(flow::take) ?: flow
    }