|
|
|
|
|
by conartist6
115 days ago
|
|
Yeah that problem you have is pretty much what I'm offering a solution to. It's the same thing you're already doing but more robust. Also I'm curious why you say that generators are far too slow. Were you using async generators perhaps? Here's what I cooked up using sync generators: https://github.com/bablr-lang/stream-iterator/blob/trunk/lib... This is the magic bit: return step.value.then((value) => {
return this.next(value);
});
|
|