Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devld/go-drive
/ Dispose
Method
Dispose
script/runtime.go:193–201 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
191
}
192
193
func
(v *VM) Dispose() error {
194
v.DisposeDisposables()
195
196
v.vmsMu.Lock()
197
defer
v.vmsMu.Unlock()
198
delete(v.vms, v.o)
199
// nothing
200
return
nil
201
}
202
203
type
ObjectDisposable
interface
{
204
Dispose()
Callers
3
newPoolTestVM
Function · 0.95
TestScriptDriveCallUsesCallerContext
Function · 0.95
newSharedStateTestVM
Function · 0.95
Calls
3
DisposeDisposables
Method · 0.95
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
3
newPoolTestVM
Function · 0.76
TestScriptDriveCallUsesCallerContext
Function · 0.76
newSharedStateTestVM
Function · 0.76