MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / ReleaseProgram

Function ReleaseProgram

internal/effecttest/vfs.go:30–33  ·  view source on GitHub ↗

ReleaseProgram releases a slot back to the program semaphore, clears per-program caches to allow GC of the program, and triggers GC.

()

Source from the content-addressed store, hash-verified

28// ReleaseProgram releases a slot back to the program semaphore, clears
29// per-program caches to allow GC of the program, and triggers GC.
30func ReleaseProgram() {
31 <-programSemaphore
32 runtime.GC()
33}
34
35// astCacheKey combines EffectVersion and filename to avoid cross-version
36// collisions (V3 and V4 mount different package contents at the same VFS paths).

Callers 6

evaluatePreviewFunction · 0.92
RunEffectQuickFixTestFunction · 0.85
RunEffectRefactorTestFunction · 0.85
RunEffectTestFunction · 0.85

Calls

no outgoing calls

Tested by 2

evaluatePreviewFunction · 0.74