We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cb9b38 + b5ed122 commit 933c633Copy full SHA for 933c633
Adamant/Modules/TransactionsStatusService/Services/TxStatusService.swift
@@ -61,10 +61,21 @@ final class TxStatusService: TxStatusServiceProtocol {
61
}
62
63
func forceUpdate(transaction: CoinTransaction) async {
64
+ subscription?.cancel()
65
+
66
status = .notInitiated
67
saveStatuses()
68
69
await updateStatus()
70
71
+ subscription = Task { [weak self] in
72
+ while await self?.observationIteration() == true {
73
+ try Task.checkCancellation()
74
+ }
75
76
+ .eraseToAnyCancellable()
77
78
79
80
81
extension TxStatusService {
0 commit comments