diff options
Diffstat (limited to 'iosApp/iosApp/Shared/FlowCollector.swift')
-rw-r--r-- | iosApp/iosApp/Shared/FlowCollector.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iosApp/iosApp/Shared/FlowCollector.swift b/iosApp/iosApp/Shared/FlowCollector.swift index 628c0cd..8570490 100644 --- a/iosApp/iosApp/Shared/FlowCollector.swift +++ b/iosApp/iosApp/Shared/FlowCollector.swift @@ -27,9 +27,9 @@ class Collector<T>: Kotlinx_coroutines_coreFlowCollector { self.callback = callback } - func emit(value: Any?, completionHandler: @escaping (KotlinUnit?, Error?) -> Void) { + func emit(value: Any?, completionHandler: @escaping (Error?) -> Void) { callback(value as! T) - completionHandler(KotlinUnit(), nil) + completionHandler(nil) } } |