WithContext sets the context into the *Selector.
(ctx context.Context)
| 1706 | |
| 1707 | // WithContext sets the context into the *Selector. |
| 1708 | func (s *Selector) WithContext(ctx context.Context) *Selector { |
| 1709 | if ctx == nil { |
| 1710 | panic("nil context") |
| 1711 | } |
| 1712 | s.ctx = ctx |
| 1713 | return s |
| 1714 | } |
| 1715 | |
| 1716 | // Context returns the Selector context or Background |
| 1717 | // if nil. |