Pass context into NewRuntime (#748)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
@@ -22,7 +22,7 @@ func Example() {
|
||||
ctx := context.Background()
|
||||
|
||||
// Create a new WebAssembly Runtime.
|
||||
r := NewRuntime()
|
||||
r := NewRuntime(ctx)
|
||||
|
||||
// Add a module to the runtime named "wasm/math" which exports one function
|
||||
// "add", implemented in WebAssembly.
|
||||
|
||||
Reference in New Issue
Block a user