MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / clearGlobalRenderContext

Function clearGlobalRenderContext

tsunami/engine/globalctx.go:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func clearGlobalRenderContext() {
52 globalCtxMutex.Lock()
53 defer globalCtxMutex.Unlock()
54 globalRenderContext = nil
55 globalRenderGoId = 0
56}
57
58func withGlobalRenderCtx[T any](vc *RenderContextImpl, fn func() T) T {
59 setGlobalRenderContext(vc)

Callers 1

withGlobalRenderCtxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected