Skip to content
Myr

Clarify SetContext documentation (#1748)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Paul Meyer · committed by GitHub · parent 7045405 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:command.go+2 added-2 removed
234 unmodified lines
235func (c *Command) Context() context.Context {236 return c.ctx237}238239// SetContext sets context for the command. It is set to context.Background by default and will be overwritten by240// Command.ExecuteContext or Command.ExecuteContextC239// SetContext sets context for the command. This context will be overwritten by240// Command.ExecuteContext or Command.ExecuteContextC.241func (c *Command) SetContext(ctx context.Context) {242 c.ctx = ctx243}244
1453 unmodified lines