spdl.source.utils

Overview

Implements meta-transformations on iterables/iterators.

API Reference

Functions

iterate_in_subprocess

iterate_in_subprocess

Run an iterator in a separate process, and yield the results one by one.

repeat_source

repeat_source

Convert an iterable into an infinite iterator with optional shuffling.

Classes

MergeIterator

MergeIterator

Iterate over given iterables and yield one item from each iterator.