Closed harayuu9 closed 3 months ago
That is difficult because Rx is a push type model. IAsyncEnumerable(UniTaskAsyncEnumerable) might be possible. MessagePipe is a dedicated system to fulfill such requests (PublishAsync) https://github.com/Cysharp/MessagePipe
Thank you very much. RX is still difficult because it is a Push type. As for asynchronous event exchange, I will try another method like MessagePipe.
When I write code like the following, in reality, OnComplete is called first, so the task itself is cancelled and there is no Console output.
I believe that in the original Rx, where SubscribeAwait didn't exist, this kind of requirement never came up. However, since R3 actively supports async await, it seems like it would be beneficial to be able to write code like the following:
Although it may seem excessive as a feature of Subject, what do you think about this proposal?