Created
November 7, 2015 22:37
-
-
Save 53ningen/b81c2ea0406172b7e609 to your computer and use it in GitHub Desktop.
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 disposeBag = DisposeBag() | |
let scheduler = SerialDispatchQueueScheduler(globalConcurrentQueuePriority: .Default) | |
[1,2,3,4,5].asObservable() | |
.observeOn(scheduler) | |
.subscribeNext({ (num) -> Void in | |
NSLog("background: \(num)") | |
}) | |
.addDisposableTo(disposeBag) | |
NSLog("main") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment