Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func First ¶
func First(parent context.Context, ctxs ...context.Context) ( context.Context, context.CancelFunc, )
First returns a new context that combines parent with ctxs. The returned context's Done channel is closed the first Done channel of any of the passed ctx closes first. Deadline returns the earliest of deadlines if there's any set. Value returns the first value found, following the passed order, for the given key. Callers must make sure that the returned cancel function is eventually called.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.