WithContext sets the main context to use.
(ctx context.Context)
| 54 | |
| 55 | // WithContext sets the main context to use. |
| 56 | func WithContext(ctx context.Context) Option { |
| 57 | return func(h *opt) error { |
| 58 | h.ctx = ctx |
| 59 | |
| 60 | return nil |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // WithNumThreads configures the number of PHP threads to start. |
| 65 | func WithNumThreads(numThreads int) Option { |