Close deallocates this component's state explicitly. For more information see the documentation for engine.Close().
()
| 164 | // |
| 165 | // For more information see the documentation for engine.Close(). |
| 166 | func (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: |
no outgoing calls