Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/memento_caretaker.swift Secret
Created Apr 23, 2019

Embed
What would you like to do?
public protocol CareTaker
{
/// Todos los *snapshots* disponibles
var mementos: [Memento] { get }
/**
Guarda un *snapshot*
*/
func saveMemento(_ memento: Memento) -> Void
/**
Recuperamos el último *snapshot*
*/
func lastMemento() -> Memento?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.