npstreams.primed

npstreams.primed(gen)

Decorator that primes a generator function, i.e. runs the function until the first yield statement. Useful in cases where there are preliminary checks when creating the generator.