This doesn't work, `pop` will be called as soon as this function returns which is immediately after the generator from `_stream` is created, not when it's finished iteration.