AsyncSequence

public extension AsyncSequence
  • Convert an AsyncSequence to an Observable emitting values of the asynchronous sequence’s type

    Declaration

    Swift

    func asObservable() -> Observable<Element>

    Return Value

    An Observable of the async sequence’s type