MCPcopy
hub / github.com/etcd-io/etcd / Then

Method Then

client/v3/txn.go:44–44  ·  view source on GitHub ↗

Then takes a list of operations. The Ops list will be executed, if the comparisons passed in If() succeed.

(ops ...Op)

Source from the content-addressed store, hash-verified

42 // Then takes a list of operations. The Ops list will be executed, if the
43 // comparisons passed in If() succeed.
44 Then(ops ...Op) Txn
45
46 // Else takes a list of operations. The Ops list will be executed, if the
47 // comparisons passed in If() fail.

Callers 15

mixedTxnFuncFunction · 0.65
txnPutFuncFunction · 0.65
ExampleAuthFunction · 0.65
TestTxnPanicsFunction · 0.65
ExampleKV_txnFunction · 0.65
ThenMethod · 0.65
serverTxnMethod · 0.65
DoMethod · 0.65
rescindMethod · 0.65
tryModifyOpMethod · 0.65
acquireMethod · 0.65
deleteRangeRPCMethod · 0.65

Implementers 5

txnclient/v3/txn.go
txnLeasingclient/v3/leasing/txn.go
txnOrderingclient/v3/ordering/kv.go
txnPrefixclient/v3/namespace/kv.go
wrappedTxntests/robustness/client/client.go

Calls

no outgoing calls

Tested by 15

ExampleAuthFunction · 0.52
TestTxnPanicsFunction · 0.52
ExampleKV_txnFunction · 0.52
ExampleKeyMissingFunction · 0.52
ExampleKeyExistsFunction · 0.52
TestReadWithPrevKvInTXNFunction · 0.52
TestPutWithLeaseInTXNFunction · 0.52
TestSTMSerializeFunction · 0.52
TestTxnErrorFunction · 0.52
TestTxnWriteFailFunction · 0.52
TestTxnReadRetryFunction · 0.52