WithTimeout sets the `Configuration.Timeout` field to the given duration.
(timeoutDur time.Duration, htmlBody ...string)
| 208 | |
| 209 | // WithTimeout sets the `Configuration.Timeout` field to the given duration. |
| 210 | func WithTimeout(timeoutDur time.Duration, htmlBody ...string) Configurator { |
| 211 | return func(app *Application) { |
| 212 | app.config.Timeout = timeoutDur |
| 213 | if len(htmlBody) > 0 { |
| 214 | app.config.TimeoutMessage = htmlBody[0] |
| 215 | } |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | // NonBlocking sets the `Configuration.NonBlocking` field to true. |
| 220 | func NonBlocking() Configurator { |
no outgoing calls
no test coverage detected
searching dependent graphs…