Skip to content

atl/sm/container

import "atl/sm/container"

Container transactions (sm.container).

func Transaction(body func()) bool

[server] Runs body as one container transaction: Collect / Spend calls inside it apply together. Returns false if the transaction couldn't start or didn't apply.

func AbortTransaction()

[server] Cancels the running transaction.