You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would suggest having an optional variant that takes some sort of cache size limit as well, in the general spirit of "I should always be able to set limits on the resources an unbounded stream will consume". It is effectively impossible to implement that from the outside (you could but you'd basically be reimplementing the entire package for that). Exceeding the cache size can then return a special error for that case.
A potential solution (using func opts) might look like:
Per this reddit comment:
A potential solution (using func opts) might look like:
Maybe func opts are overkill when there's only one option. It could also be something like:
Or maybe just a method on
Stream
:The text was updated successfully, but these errors were encountered: