Cysharp / R3

The new future of dotnet/reactive and UniRx.
MIT License
2.1k stars 92 forks source link

Seemingly unavoidable "System.InvalidOperationException: Disposable is already assigned." in certain case #226

Closed Ifhay closed 3 months ago

Ifhay commented 3 months ago

I've encountered this exception when trying to create a nested Observable chain.

disposable console

As far as I understand, if the Observable that is returned from inside Defer has SubscribeOn... operator, then the outer SubscribeOn results in an error.

Is this intended?

Thanks!

neuecc commented 3 months ago

When treating a List<T> as an IEnumerable<T>, there should be performance differences. Are you considering such factors?"

Ifhay commented 3 months ago

When treating a List<T> as an IEnumerable<T>, there should be performance differences. Are you considering such factors?"

I don't think I understand what this has to do with the fact that a private field is being set twice, when this is illegal by design, sorry. Could you elaborate, please?

neuecc commented 3 months ago

Oh, I'm sorry! It seems I was replying to the wrong part! This is a reply to another Issue.

neuecc commented 3 months ago

And thank you, this seems Defer s bug. I'll fix and release soon(maybe today).

neuecc commented 3 months ago

fixed on 1.1.13.