Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -38,7 +38,7 @@ import SwiftEventBus | ... | @@ -38,7 +38,7 @@ import SwiftEventBus |
38 | tableView.delegate = self | 38 | tableView.delegate = self |
39 | tableView.dataSource = self | 39 | tableView.dataSource = self |
40 | 40 | ||
41 | - SwiftEventBus.onBackgroundThread(self, name: "ccms_retrieved") { result in | 41 | + SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in |
42 | print("===== SwiftEventBus ccms_retrieved =====") | 42 | print("===== SwiftEventBus ccms_retrieved =====") |
43 | self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns()) | 43 | self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns()) |
44 | self.tableView.reloadData() | 44 | self.tableView.reloadData() | ... | ... |
... | @@ -27,7 +27,7 @@ import SwiftEventBus | ... | @@ -27,7 +27,7 @@ import SwiftEventBus |
27 | tableView.delegate = self | 27 | tableView.delegate = self |
28 | tableView.dataSource = self | 28 | tableView.dataSource = self |
29 | 29 | ||
30 | - SwiftEventBus.onBackgroundThread(self, name: "ccms_retrieved") { result in | 30 | + SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in |
31 | print("===== SwiftEventBus ccms_retrieved =====") | 31 | print("===== SwiftEventBus ccms_retrieved =====") |
32 | self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns()) | 32 | self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns()) |
33 | self.tableView.reloadData() | 33 | self.tableView.reloadData() | ... | ... |
-
Please register or login to post a comment