Skip to content

Commit

Permalink
fixup! im: Add ObservableVectorTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Sep 7, 2023
1 parent 25d4d3a commit f6c4c51
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions eyeball-im/src/vector/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ use super::{entry::EntryIndex, BroadcastMessage, ObservableVector, VectorDiff};
/// For updates from the transaction to have affect, it has to be finalized with
/// [`.commit()`](Self::commit). If the transaction is dropped without that
/// method being called, the updates will be discarded.
///
/// Note that currently, this only means that subscribers will not see any of
/// the updates that are part of the transaction until it has been dropped. The
/// changes can not be rolled back if partway through, an error occurs. Please
/// open an issue if you are interested in having rollbacks.
pub struct ObservableVectorTransaction<'o, T: Clone> {
// The observable vector being modified, only modified on commit.
inner: &'o mut ObservableVector<T>,
Expand Down

0 comments on commit f6c4c51

Please sign in to comment.