The FilterStream currently loops on Ready values, until a match is found. It's possible to write a malicious stream and filter that would infinitely loop:
filter = |v| false;
stream = ready(1)
This stream would never return Pending, which results in a FilterStream that loops.
The FilterStream currently loops on Ready values, until a match is found. It's possible to write a malicious stream and filter that would infinitely loop:
This stream would never return Pending, which results in a FilterStream that loops.