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
EmitterProcessor#remove has support to discard the buffer once the last subscriber is gone. However, it returns early if the subscribers array is already EMPTY. For cases where the subscription is immediately cancelled (e.g. .take(0)) this may leak the buffered elements.
EmitterProcessor#remove
has support to discard the buffer once the last subscriber is gone. However, it returns early if the subscribers array is alreadyEMPTY
. For cases where the subscription is immediately cancelled (e.g..take(0)
) this may leak the buffered elements.Here is a repro case:
As a workaround
.takeWhile(x -> false)
does make the test pass for example.The text was updated successfully, but these errors were encountered: