Instance Property

timeoutAfter

Set the amount of time allowed for the request to complete before it times out.

Declaration

var timeoutAfter: TimeAmount?

Discussion

By default, all requests are set to automatically timeout after 5 seconds of attempting to connect. Setting this property will void that default behavior. If the request has not been completed after the amount of time set by this property, it will terminate.

Supports nanoseconds, microseconds, milliseconds, seconds, minutes, hours.

examples: .seconds(10)

See Also

Options