Generates values from produce with a time delay.
produce can be a simple function that returns a value, an function, or a generator.
If produce returns undefined, generator exits.
This is the synchronous version. repeat allows for delays between loops
as well as asynchronous callbacks.
If the AbortSignal is triggered, an exception will be thrown, stopping iteration.
Generates values from
producewith a time delay.producecan be a simple function that returns a value, an function, or a generator. Ifproducereturns undefined, generator exits.This is the synchronous version. repeat allows for delays between loops as well as asynchronous callbacks.
If the AbortSignal is triggered, an exception will be thrown, stopping iteration.