(vc *RenderContextImpl, fn func() T)
| 56 | } |
| 57 | |
| 58 | func withGlobalRenderCtx[T any](vc *RenderContextImpl, fn func() T) T { |
| 59 | setGlobalRenderContext(vc) |
| 60 | defer clearGlobalRenderContext() |
| 61 | return fn() |
| 62 | } |
| 63 | |
| 64 | func GetGlobalRenderContext() *RenderContextImpl { |
| 65 | globalCtxMutex.Lock() |
no test coverage detected