| 930 | } |
| 931 | |
| 932 | int Storage::Subscribe(ChangeCountryFunction change, ProgressFunction progress) |
| 933 | { |
| 934 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 935 | |
| 936 | int const id = ++m_currentSlotId; |
| 937 | m_observers.push_back({std::move(change), std::move(progress), id}); |
| 938 | return id; |
| 939 | } |
| 940 | |
| 941 | void Storage::Unsubscribe(int slotId) |
| 942 | { |