Skip to content

Commit

Permalink
doc: clarify the forbidden use of Call with inflight calls (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathetake authored Nov 30, 2023
1 parent d39d845 commit 5796897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ type Function interface {
// Call is not goroutine-safe, therefore it is recommended to create
// another Function if you want to invoke the same function concurrently.
// On the other hand, sequential invocations of Call is allowed.
// However, this should not be called multiple times until the previous Call returns.
//
// To safely encode/decode params/results expressed as uint64, users are encouraged to
// use api.EncodeXXX or DecodeXXX functions. See the docs on api.ValueType.
Expand Down

0 comments on commit 5796897

Please sign in to comment.