반응형
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 | 31 |
Tags
- init
- Operators
- @Environment
- RxSwift
- graphql
- subject
- NullObject
- RFC1738/1808
- SwiftUI
- ios14
- nestjs
- IOS
- dismiss
- operator
- swift6
- @State
- init?
- nonisolated
- @EnvironmentObject
- RxCocoa
- Creating Operators
- typeorm
- vim
- URL(string:)
- Operater
- Bug
- Xcode
- NavigationLink
- SWIFT
- @Binding
Archives
- Today
- Total
목록repeatElement (1)
Tunko Development Diary

repeatElement let disposeBag = DisposeBag() let element = "👍" Observable.repeatElement(element) .take(10) .subscribe { print($0) } .disposed(by: disposeBag) 출력 next(👍) next(👍) next(👍) next(👍) next(👍) next(👍) next(👍) next(👍) next(👍) next(👍) completed 동일한 요소를 반복적으로 방출하는 연산자입니다. 무한정 반복합니다. 따라서 방출되는 횟수를 정해주는게 중요합니다. take 연산자를 사용해서 10개의 요소만 방출되도록 해주었습니다. deferred let disposeBag = DisposeBag() var fla..
Development/RxSwift
2022. 5. 31. 16:02