diff --git a/NSObject+Rx.swift b/NSObject+Rx.swift index 65386bb..7da09ab 100644 --- a/NSObject+Rx.swift +++ b/NSObject+Rx.swift @@ -28,7 +28,7 @@ public extension Reactive where Base: AnyObject { } } - set { + nonmutating set { synchronizedBag { objc_setAssociatedObject(base, &disposeBagContext, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }