Streaming Values with Timeout from ReadableStream

How would I go about streaming values from a ReadableStream, until 15 seconds pass without a new element, at which point the ReadableStream is unlocked and the streamed values returned?
Was this page helpful?