Skip to content

Instantly share code, notes, and snippets.

@manjotmona
Created May 9, 2018 17:31
Embed
What would you like to do?
trait History[PM <: PersistentNodeViewModifier, SI <: SyncInfo, HT <: History[PM, SI, HT]] extends HistoryReader[PM, SI] {
def append(modifier: PM): Try[(HT, ProgressInfo[PM])]
def reportModifierIsValid(modifier: PM): HT
def reportModifierIsInvalid(modifier: PM, progressInfo: ProgressInfo[PM]): (HT, ProgressInfo[PM])
def getReader: HistoryReader[PM, SI] = this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment