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

Method Close

extern.go:39–47  ·  view source on GitHub ↗

Close will deallocate this extern's state explicitly. For more information see the documentation for engine.Close()

()

Source from the content-addressed store, hash-verified

37//
38// For more information see the documentation for engine.Close()
39func (e *Extern) Close() {
40 if e._ptr == nil {
41 return
42 }
43 runtime.SetFinalizer(e, nil)
44 C.wasmtime_extern_delete(e._ptr)
45 e._ptr = nil
46
47}
48
49// Type returns the type of this export
50func (e *Extern) Type(store Storelike) *ExternType {

Callers 1

mkExternFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected