ProgressStallTimeout

public enum ProgressStallTimeout : Sendable, Equatable

Strategy for cancelling uploads when progress stops advancing.

Aligns with the pattern used by other Amplify clients (for example flush intervals in the Kinesis client). Configure a default on the S3 storage plugin and optionally override per upload using Options or Options.

  • Tag: ProgressStallTimeout
  • Do not cancel uploads when progress stalls. Named disabled (not none) so it does not collide with Optional.none when used as ProgressStallTimeout?.

    Declaration

    Swift

    case disabled
  • Cancel the upload if progress does not advance within this interval (seconds).

    Declaration

    Swift

    case interval(TimeInterval)
  • Duration in seconds used by the stall timer, or 0 when disabled.

    Declaration

    Swift

    var secondsForStallTimer: TimeInterval { get }