Skip to content

Commit

Permalink
fix closed
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Oct 2, 2024
1 parent 1866ce1 commit ef0d8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private/pkg/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
//
// It is safe to use this module concurrently. When done, call Close to free
// resources held by the CompiledModule. All CompiledModules created by the
// same Runtime will be invalidated when the Runtime is released.
// same Runtime will be invalidated when the Runtime is closed.
//
// Memory is limited by the Runtime. To restrict CPU usage, cancel the context.
type CompiledModule interface {
Expand All @@ -38,7 +38,7 @@ type CompiledModule interface {
//
// It is safe to use the Runtime concurrently. Close must be called when done
// with the Runtime to free resources. All CompiledModules created by the same
// Runtime will be invalidated when the Runtime is released.
// Runtime will be invalidated when the Runtime is closed.
type Runtime interface {
// Compile compiles the given Wasm module bytes into a CompiledModule.
Compile(ctx context.Context, moduleName string, moduleWasm []byte) (CompiledModule, error)
Expand Down

0 comments on commit ef0d8a8

Please sign in to comment.