MCPcopy
hub / github.com/wavetermdev/waveterm / WithLock

Method WithLock

pkg/remote/conncontroller/conncontroller.go:826–830  ·  view source on GitHub ↗
(fn func())

Source from the content-addressed store, hash-verified

824}
825
826func (conn *SSHConn) WithLock(fn func()) {
827 conn.lock.Lock()
828 defer conn.lock.Unlock()
829 fn()
830}
831
832func WithLockRtn[T any](conn *SSHConn, fn func() T) T {
833 conn.lock.Lock()

Callers 12

CloseMethod · 0.95
StartConnServerMethod · 0.95
ConnectMethod · 0.95
persistWshInstalledMethod · 0.95
connectInternalMethod · 0.95
waitForDisconnectMethod · 0.95
SetWshErrorMethod · 0.95
ClearWshErrorMethod · 0.95
SetConnHealthStatusMethod · 0.95
GetConnHealthStatusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected