Update comment decryption UI

This commit is contained in:
Ali
2020-03-25 17:59:03 +04:00
parent 44b57ffcce
commit 5d55b67c3a
171 changed files with 5267 additions and 1448 deletions

View File

@@ -30,19 +30,19 @@ public func deliverOn<T, E>(_ threadPool: ThreadPool) -> (Signal<T, E>) -> Signa
let queue = threadPool.nextQueue()
return signal.start(next: { next in
queue.addTask(ThreadPoolTask { state in
if !state.cancelled.with { $0 } {
if !state.cancelled.with({ $0 }) {
subscriber.putNext(next)
}
})
}, error: { error in
queue.addTask(ThreadPoolTask { state in
if !state.cancelled.with { $0 } {
if !state.cancelled.with({ $0 }) {
subscriber.putError(error)
}
})
}, completed: {
queue.addTask(ThreadPoolTask { state in
if !state.cancelled.with { $0 } {
if !state.cancelled.with({ $0 }) {
subscriber.putCompletion()
}
})
@@ -97,7 +97,7 @@ public func runOn<T, E>(_ threadPool: ThreadPool) -> (Signal<T, E>) -> Signal<T,
let disposable = MetaDisposable()
let task = ThreadPoolTask { state in
if cancelled || state.cancelled.with { $0 } {
if cancelled || state.cancelled.with({ $0 }) {
return
}