This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
//let episodeV = "episodeV" | |
// | |
//example(of: "Creating observables") { | |
// let mostPopular: Observable<String> = Observable<String>.just(episodeV) | |
//} | |
import RxSwift | |
// MARK: OBSERVABLES | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
/* | |
In iOS, Apple provides two ways to do multitasking: | |
The Grand Central Dispatch (GCD) and NSOperationQueue frameworks. | |
Both of them work perfectly when it’s time to assign tasks to different threads, or different queues other than the main one. | |
Which one should be use is a subjective matter, but in this tutorial we’ll focus on the first one, the GCD. | |
*No matter what,there’s one rule that should be always respected: | |
The main thread must be always remain free so it serves the user interface and user interactions. |