Makes all examples and docs use Runtime.Close (#537)
This removes tedium in our examples and docs by using `Runtime.Close` instead of tracking everything. Internal tests still track too much, but anyway at least this stops suggesting others should do it. This also changes our examples to use log.PanicXX so that the line number goes into the console output. Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -105,6 +105,7 @@ func ValueTypeName(t ValueType) string {
|
||||
|
||||
// Module return functions exported in a module, post-instantiation.
|
||||
//
|
||||
// Note: Closing the wazero.Runtime closes any Module it instantiated.
|
||||
// Note: This is an interface for decoupling, not third-party implementations. All implementations are in wazero.
|
||||
// See https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#external-types%E2%91%A0
|
||||
type Module interface {
|
||||
|
||||
Reference in New Issue
Block a user