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

Method WithLock

pkg/wslconn/wslconn.go:546–550  ·  view source on GitHub ↗
(fn func())

Source from the content-addressed store, hash-verified

544}
545
546func (conn *WslConn) WithLock(fn func()) {
547 conn.Lock.Lock()
548 defer conn.Lock.Unlock()
549 fn()
550}
551
552func WithLockRtn[T any](conn *WslConn, fn func() T) T {
553 conn.Lock.Lock()

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected