Back to Rxswift

SubjectType

docs/Protocols/SubjectType.html

6.10.2630 B
Original Source

SubjectType

public protocol SubjectType : ObservableType

Represents an object that is both an observable sequence as well as an observer.

`

                Observer
                `

The type of the observer that represents this subject.

Usually this type is type of subject itself, but it doesn’t have to be.

Declaration

Swift

associatedtype Observer : ObserverType

`

                asObserver()
                `

Returns observer interface for subject.

Declaration

Swift

func asObserver() -> Observer

Return Value

Observer interface for subject.