remove incorrect early yield
This commit is contained in:
parent
efe384a1f2
commit
5b8e74688d
|
@ -51,9 +51,10 @@ export async function* observableToAsyncIterator(observable) {
|
|||
|
||||
try {
|
||||
while (true) {
|
||||
const value = yield await buffer[0].promise
|
||||
const value = await buffer[0].promise
|
||||
buffer.unshift()
|
||||
|
||||
// might cause a early complete because done can be true true when more than one item are in buffer
|
||||
if (done) {
|
||||
return value
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue