Close will deallocate this module's state explicitly. For more information see the documentation for engine.Close()
()
| 37 | // |
| 38 | // For more information see the documentation for engine.Close() |
| 39 | func (m *Module) Close() { |
| 40 | if m._ptr == nil { |
| 41 | return |
| 42 | } |
| 43 | runtime.SetFinalizer(m, nil) |
| 44 | C.wasmtime_module_delete(m._ptr) |
| 45 | m._ptr = nil |
| 46 | |
| 47 | } |
| 48 | |
| 49 | // Imports returns a list of `ImportType` which are the items imported by |
| 50 | // this module and are required for instantiation |
no outgoing calls