From ce54965edc2eee38640b321f97b51f754938320e Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 19 Jul 2023 15:22:12 -0500 Subject: [PATCH] added wait Signed-off-by: Matt Bruce --- VDS/Protocols/Handlerable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Protocols/Handlerable.swift b/VDS/Protocols/Handlerable.swift index 79c08668..253f5d82 100644 --- a/VDS/Protocols/Handlerable.swift +++ b/VDS/Protocols/Handlerable.swift @@ -25,7 +25,7 @@ public protocol Handlerable: AnyObject, Initable, Disabling, Surfaceable { extension Handlerable { public func setupNeedsUpdateEvent() { subject - .debounce(for: .seconds(0), scheduler: RunLoop.main) + .debounce(for: .milliseconds(200), scheduler: RunLoop.main) .sink { [weak self] _ in self?.updateView() }.store(in: &subscribers)