RxSwift icon indicating copy to clipboard operation
RxSwift copied to clipboard

Allow converting async block to Traits

Open pookjw opened this issue 2 years ago • 0 comments

This PR allows converting async block to RxSwift Traits - Infailable, Single, Maybe, Completable, Signal, Driver.

Single.from {
    await UIImage(named: "background")?.byPreparingThumbnail(ofSize: CGSize(width: 10, height: 10))
}
.compactMap { $0 }
.asObservable()
.bind(to: imageView.rx.image)
.disposed(by: disposeBag)

pookjw avatar Mar 30 '22 16:03 pookjw