HasOperations returns true if the transaction has any buffered operations.
()
| 394 | |
| 395 | // HasOperations returns true if the transaction has any buffered operations. |
| 396 | func (tx *Transaction) HasOperations() bool { |
| 397 | tx.mutex.RLock() |
| 398 | defer tx.mutex.RUnlock() |
| 399 | return tx.buffer.HasOperations() |
| 400 | } |
| 401 | |
| 402 | // OperationCount returns the number of buffered operations in the transaction. |
| 403 | func (tx *Transaction) OperationCount() int { |
no outgoing calls