Closure or dynamic protocol implementation?

I marked this topic as #off-topic because it‘s a question about RxSwift in general.


Other than that, you‘re looking at the wrong subscribe method, there are multiple.

Check this one out:

There is no magic here, just a different subscribe method that can take multiple closures.

Regarding the second question check out the implementation for AnyObserver.

Then it‘s just ˋobservable.subscribe(yourObserver)ˋ.

1 Like