Skip to content

Commit c396f41

Browse files
committed
OrdersVM: Rename disposable to cancellable to match Combine
1 parent 737176f commit c396f41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WooCommerce/Classes/ViewRelated/Orders/OrdersViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class OrdersViewModel {
2929

3030
/// Used for cancelling the observer for Remote Notifications when `self` is deallocated.
3131
///
32-
private var disposable: ObservationToken?
32+
private var cancellable: ObservationToken?
3333

3434
/// The block called if self requests a resynchronization of the first page.
3535
///
@@ -252,7 +252,7 @@ private extension OrdersViewModel {
252252
/// A refresh will be requested when receiving them.
253253
///
254254
func observeForegroundRemoteNotifications() {
255-
disposable = pushNotificationsManager.foregroundNotifications.subscribe { [weak self] notification in
255+
cancellable = pushNotificationsManager.foregroundNotifications.subscribe { [weak self] notification in
256256
guard notification.kind == .storeOrder else {
257257
return
258258
}
@@ -262,7 +262,7 @@ private extension OrdersViewModel {
262262
}
263263

264264
func stopObservingForegroundRemoteNotifications() {
265-
disposable?.cancel()
265+
cancellable?.cancel()
266266
}
267267
}
268268

0 commit comments

Comments
 (0)