diff --git a/Sources/Property.swift b/Sources/Property.swift index 165da46..e57b0a7 100644 --- a/Sources/Property.swift +++ b/Sources/Property.swift @@ -60,6 +60,7 @@ public final class Property: PropertyProtocol, SubjectProtocol, BindableP } public func on(_ event: Event) { + lock.lock(); defer { lock.unlock() } if case .next(let element) = event { _value = element }