From 01d86ff684b060b984b7b8c12305efd677fa728b Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Thu, 4 Aug 2016 10:48:36 +0200 Subject: [PATCH] Fixes OSX compilation issues. --- RxExample/RxExample/ViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RxExample/RxExample/ViewController.swift b/RxExample/RxExample/ViewController.swift index 76b8debe..1b6d6fb2 100644 --- a/RxExample/RxExample/ViewController.swift +++ b/RxExample/RxExample/ViewController.swift @@ -37,7 +37,7 @@ class ViewController: OSViewController { } deinit { -#if TRACE_RESOURCES +#if TRACE_RESOURCES && os(iOS) print("View controller disposed with \(resourceCount) resources") /* @@ -79,8 +79,8 @@ class ViewController: OSViewController { If somebody knows more about why this delay happens, you can make a PR with explanation here. */ - let when = DispatchTime.now() + DispatchTimeInterval.milliseconds(2) - mainQueue.after(when: when) { + let when = DispatchTime.now() + DispatchTimeInterval.milliseconds(20) + mainQueue.after (when: when) { /* Some small additional period to clean things up. In case there were async operations fired,