CloseableSequence

interface CloseableSequence<T>

Represents a sequence of elements that can be closed to release any underlying resources.

This interface extends the standard Sequence interface and adds the close method to allow for explicit resource management.

Parameters

the type of elements produced by this sequence

Functions

Link copied to clipboard
abstract fun close()

Closes this sequence and releases any underlying resources.