From 8936304335d34fc9a9e25fa148a050a70e073a4d Mon Sep 17 00:00:00 2001 From: Anders Date: Sun, 20 Dec 2015 23:02:16 +0800 Subject: [PATCH] Use `withValue(action:)` in `value.getter`. --- ReactiveCocoa/Swift/Property.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ReactiveCocoa/Swift/Property.swift b/ReactiveCocoa/Swift/Property.swift index 4ff109839d..0dda62557c 100644 --- a/ReactiveCocoa/Swift/Property.swift +++ b/ReactiveCocoa/Swift/Property.swift @@ -89,10 +89,7 @@ public final class MutableProperty: MutablePropertyType { /// created from the `values` producer. public var value: Value { get { - lock.lock() - defer { lock.unlock() } - - return _value + return withValue { $0 } } set {