mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -190,6 +190,12 @@ public final class DisposableSet : Disposable {
|
||||
pthread_mutex_unlock(&self.lock)
|
||||
}
|
||||
|
||||
public func removeLast() {
|
||||
pthread_mutex_lock(&self.lock)
|
||||
self.disposables.removeLast()
|
||||
pthread_mutex_unlock(&self.lock)
|
||||
}
|
||||
|
||||
public func dispose() {
|
||||
var disposables: [Disposable] = []
|
||||
pthread_mutex_lock(&self.lock)
|
||||
|
||||
Reference in New Issue
Block a user