This commit is contained in:
Ali
2023-09-19 19:05:22 +02:00
parent 08ebdf6f90
commit 75d9f03212
2 changed files with 22 additions and 9 deletions

View File

@@ -24,7 +24,11 @@ public func |> <T, U>(value: T, function: ((T) -> U)) -> U {
}
private final class SubscriberDisposable<T, E>: Disposable, CustomStringConvertible {
#if DEBUG
private weak var subscriber: Subscriber<T, E>?
#else
private var subscriber: Subscriber<T, E>?
#endif
private var lock = pthread_mutex_t()
private var disposable: Disposable?