Skip to main content

exhaust

Exhaust an iterator or stream.

def exhaust(
stream_or_iterable: iterable or stream
) - > null

Exhaust an iterator or stream.

Parameters

NameTypeDescription
stream_or_iterableiterable or streamThe data source to be fully consumed, which can be a standard Python iterable or a stream-like object.

Returns

TypeDescription
nullNothing is returned as the function's purpose is to consume the input for its side effects.