Skip to content

Commit b8874c0

Browse files
committed
Use named parameter for scheduler
1 parent cfdc971 commit b8874c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Demo/Demo/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ViewController: UIViewController {
4646
// Demo: add an action to a UIBarButtonItem in the navigation item
4747
self.navigationItem.rightBarButtonItem!.rx_action = CocoaAction {
4848
print("Bar button item was pressed, simulating a 2 second action")
49-
return Observable.empty().delaySubscription(2, MainScheduler.instance)
49+
return Observable.empty().delaySubscription(2, scheduler: MainScheduler.instance)
5050
}
5151

5252
// Demo: observe the output of both actions, spin an activity indicator

0 commit comments

Comments
 (0)