an intermediate operator, or a terminal operator? Both? Neither?
🦖 1
r
ross_a
10/10/2024, 8:35 AM
I'd say both, depends on
started
ross_a
10/10/2024, 8:36 AM
Eagerly, terminal, doesn't matter what the downstream does
WhileSubscribed, not, upstream behaviour is affected by the downstream
ross_a
10/10/2024, 8:37 AM
Lazily, a mix of both 🙂
s
Sam
10/10/2024, 8:40 AM
Makes sense, I like the idea of basing the decision on whether it can be affected by downstream terminal operators
Sam
10/10/2024, 8:41 AM
And yet, errors from the upstream will always be handled by the sharing coroutine, never by the downstream. That's an argument for calling it a terminal. To be honest, I think the answer to this particular question is probably just undefined 😄
Sam
10/10/2024, 8:42 AM
🤔 I suppose
catch
also has the same error-trapping properties, and that's intermediate. So maybe I'm changing my own mind there.
r
ross_a
10/10/2024, 8:43 AM
Yeah I was going to say 🙂 you could do the equivalent with catch and onComplete