Skip to content

Instantly share code, notes, and snippets.

@Beepeach
Last active April 28, 2022 09:32
Single<Int>.create { single in
single(.success(2))
// 이후의 코드는 전달되지 않습니다.
// success는 completed를 호출한것과 같기 때문입니다.
// single(.success(3))
return Disposables.create()
}.subscribe {
print("Single >>>", $0)
}.disposed(by: disposeBag)
// Single >>> 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment