MCPcopy Index your code
hub / github.com/coder/coder / Done

Method Done

coderd/database/dbtestutil/tx.go:67–73  ·  view source on GitHub ↗

Done can only be called once. If you call it twice, it will panic.

()

Source from the content-addressed store, hash-verified

65
66// Done can only be called once. If you call it twice, it will panic.
67func (tx *DBTx) Done() error {
68 tx.mu.Lock()
69 defer tx.mu.Unlock()
70
71 close(tx.done)
72 return <-tx.finalErr
73}

Callers 15

TestDriverFunction · 0.45
startMethod · 0.45
NewFunction · 0.45
startCleanerFunction · 0.45
Test_MsgQueue_ListenerFunction · 0.45
Test_MsgQueue_FullFunction · 0.45
PublishMethod · 0.45
publishLoopMethod · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 8

TestDriverFunction · 0.36
Test_MsgQueue_ListenerFunction · 0.36
Test_MsgQueue_FullFunction · 0.36
TestPubsub_DisconnectFunction · 0.36