Instance Property

timeoutIntervalForResource

The maximum amount of time that a resource request should be allowed to take.

Declaration

var timeoutIntervalForResource: TimeInterval { get set }

Discussion

This property determines the resource timeout interval for this operation. The resource timeout interval controls how long (in seconds) to wait for the entire operation to complete before giving up. The resource timer starts when the operation is initiated and counts until either the operation completes or this timeout interval is reached, whichever comes first.

The default value is 7 days.

See Also

Customizing the Network Access Behavior

var allowsCellularAccess: Bool

A Boolean value indicating whether the operation object may send data over the cell network.

Deprecated
var timeoutIntervalForRequest: TimeInterval

The timeout interval to use when waiting for additional data.

Deprecated