MCPcopy Index your code
hub / github.com/php/frankenphp / WithContext

Function WithContext

options.go:56–62  ·  view source on GitHub ↗

WithContext sets the main context to use.

(ctx context.Context)

Source from the content-addressed store, hash-verified

54
55// WithContext sets the main context to use.
56func 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.
65func WithNumThreads(numThreads int) Option {

Callers 2

mainFunction · 0.92
StartMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected