MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / Close

Method Close

component_feat_component_model.go:166–173  ·  view source on GitHub ↗

Close deallocates this component's state explicitly. For more information see the documentation for engine.Close().

()

Source from the content-addressed store, hash-verified

164//
165// For more information see the documentation for engine.Close().
166func (c *Component) Close() {
167 if c._ptr == nil {
168 return
169 }
170 runtime.SetFinalizer(c, nil)
171 C.wasmtime_component_delete(c._ptr)
172 c._ptr = nil
173}
174
175// ComponentExportIndex is an opaque, precomputed handle pointing at a known
176// export of a component. It has two main uses:

Callers 2

mkComponentFunction · 0.95
TestComponentNewFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestComponentNewFunction · 0.76