Transaction#

class Transaction(nodetree: NodeTree)[source]#

Bases: object

Transaction Manager.

Buffers commands (node, value pairs)

Parameters:

nodetree (NodeTree) – Underlying Nodetree

Methods

add(node, value)

Adds a single node set command to the set transaction.

add_raw_list(node_value_pairs)

Adds multiple set commands at a time.

in_progress()

Flag if the transaction is in progress.

result()

Resulting transaction list.

start([add_callback])

Start the transaction.

stop()

Stop the transaction.