Skip to content

Instantly share code, notes, and snippets.

@jchapuis
Created March 7, 2024 08:37
Show Gist options
  • Save jchapuis/71a4cf4904c2dbd60453787ef866bb05 to your computer and use it in GitHub Desktop.
Save jchapuis/71a4cf4904c2dbd60453787ef866bb05 to your computer and use it in GitHub Desktop.
Branch
trait Branch[F[_], TID, Q, R]
def prepare(id: TID, query: Q): F[Vote[R]]
def commit(id: TID): F[Unit]
def abort(id: TID): F[Unit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment