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