Adds an item to the list of items that should be synchronized to other devices. NB: Private and `pub(crate)` functions shouldn't call this unless `Sync::Sync` is explicitly passed to them. This way it's always clear whether the code performs synchronisation.
(&self, data: SyncData)
| 154 | /// NB: Private and `pub(crate)` functions shouldn't call this unless `Sync::Sync` is explicitly |
| 155 | /// passed to them. This way it's always clear whether the code performs synchronisation. |
| 156 | pub(crate) async fn add_sync_item(&self, data: SyncData) -> Result<()> { |
| 157 | self.add_sync_item_with_timestamp(data, time()).await |
| 158 | } |
| 159 | |
| 160 | /// Adds item and timestamp to the list of items that should be synchronized to other devices. |
| 161 | /// If device synchronization is disabled, the function does nothing. |