From 52005f4096ac36232014cf0f52e7eeb5bae617c4 Mon Sep 17 00:00:00 2001 From: Scott Gardner Date: Sat, 14 May 2016 12:34:18 -0500 Subject: [PATCH] Disable RxSwift.resourceCount example outside of playground --- .../Contents.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rx.playground/Pages/Error_Handling_and_Debugging_Operators.xcplaygroundpage/Contents.swift b/Rx.playground/Pages/Error_Handling_and_Debugging_Operators.xcplaygroundpage/Contents.swift index 8855c7fe..43228d35 100644 --- a/Rx.playground/Pages/Error_Handling_and_Debugging_Operators.xcplaygroundpage/Contents.swift +++ b/Rx.playground/Pages/Error_Handling_and_Debugging_Operators.xcplaygroundpage/Contents.swift @@ -167,6 +167,8 @@ example("debug") { ## `RxSwift.resourceCount` Provides a count of all Rx resource allocations, which is useful for detecting leaks during development. */ +#if NOT_IN_PLAYGROUND +#else example("RxSwift.resourceCount") { print(RxSwift.resourceCount) @@ -194,6 +196,7 @@ example("RxSwift.resourceCount") { } print(RxSwift.resourceCount) -//: > `RxSwift.resourceCount` is not enabled by default. [Click here](Enable_RxSwift.resourceCount) for instructions on how to enable it. +#endif +//: > `RxSwift.resourceCount` is not enabled by default, and should generally not be enabled in Release builds. [Click here](Enable_RxSwift.resourceCount) for instructions on how to enable it. //: [Table of Contents](Table_of_Contents)