You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All methods that spawns a request to a remote service/API or have an inter process communication should (it is strongly recommended for reliability) have a context.Context as a parameters (preferably the first one). Golang context package overview:
Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.
That way, if the context is canceled by either client or server (due to timeout - client-defined or gateway-defined - for example) such behavior is propagated throughout all peers.
The text was updated successfully, but these errors were encountered:
All methods that spawns a request to a remote service/API or have an inter process communication should (it is strongly recommended for reliability) have a
context.Context
as a parameters (preferably the first one). Golang context package overview:For example:
That way, if the context is canceled by either client or server (due to timeout - client-defined or gateway-defined - for example) such behavior is propagated throughout all peers.
The text was updated successfully, but these errors were encountered: