반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- operator
- SWIFT
- @Binding
- Xcode
- Operators
- init?
- init
- IOS
- subject
- RFC1738/1808
- @EnvironmentObject
- NullObject
- typeorm
- RxSwift
- RxCocoa
- dismiss
- @State
- nonisolated
- graphql
- ios14
- Operater
- SwiftUI
- URL(string:)
- Creating Operators
- vim
- nestjs
- Bug
- NavigationLink
- @Environment
- swift6
Archives
- Today
- Total
목록Take (1)
Tunko Development Diary

take let disposeBag = DisposeBag() let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Observable.from(numbers) .take(5) .subscribe { print($0) } .disposed(by: disposeBag) 출력 next(1) next(2) next(3) next(4) next(5) completed take 인자로 들어간 count만큼 방출합니다. take(while:) let disposeBag = DisposeBag() let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Observable.from(numbers) .take(while: { $0 < 3} ) .subscribe {..
Development/RxSwift
2022. 6. 1. 02:57