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

Method Close

trap.go:84–91  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

82//
83// For more information see the documentation for engine.Close()
84func (t *Trap) Close() {
85 if t._ptr == nil {
86 return
87 }
88 runtime.SetFinalizer(t, nil)
89 C.wasm_trap_delete(t._ptr)
90 t._ptr = nil
91}
92
93// Message returns the message of the `Trap`
94func (t *Trap) Message() string {

Calls

no outgoing calls