MCPcopy Index your code
hub / github.com/coder/coder / WithGracefulTimeout

Function WithGracefulTimeout

tailnet/controllers.go:1510–1514  ·  view source on GitHub ↗
(timeout time.Duration)

Source from the content-addressed store, hash-verified

1508}
1509
1510func WithGracefulTimeout(timeout time.Duration) ControllerOpt {
1511 return func(c *Controller) {
1512 c.gracefulTimeout = timeout
1513 }
1514}
1515
1516// manageGracefulTimeout allows the gracefulContext to last longer than the main context
1517// to allow a graceful disconnect.

Callers 1

Calls

no outgoing calls

Tested by 1