doc: clarify the forbidden use of Call with inflight calls (#1853)

This commit is contained in:
Takeshi Yoneda
2023-12-01 07:07:21 +09:00
committed by GitHub
parent d39d84505a
commit 5796897f37

View File

@@ -374,6 +374,7 @@ type Function interface {
// Call is not goroutine-safe, therefore it is recommended to create // Call is not goroutine-safe, therefore it is recommended to create
// another Function if you want to invoke the same function concurrently. // another Function if you want to invoke the same function concurrently.
// On the other hand, sequential invocations of Call is allowed. // 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 // 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. // use api.EncodeXXX or DecodeXXX functions. See the docs on api.ValueType.