Close will deallocate this store's state explicitly. For more information see the documentation for engine.Close()
()
| 118 | // |
| 119 | // For more information see the documentation for engine.Close() |
| 120 | func (store *Store) Close() { |
| 121 | if store._ptr == nil { |
| 122 | return |
| 123 | } |
| 124 | runtime.SetFinalizer(store, nil) |
| 125 | C.wasmtime_store_delete(store._ptr) |
| 126 | store._ptr = nil |
| 127 | } |
| 128 | |
| 129 | // Implementation of the `Storelike` interface |
| 130 | func (store *Store) Context() *C.wasmtime_context_t { |
no outgoing calls