Scheduling

public protocol Scheduling

The Scheduling protocol contains the properties and methods needed for a class to support scheduled sends.

  • An optional time to send the email at. The date cannot be further than 72 hours in the future.

    Declaration

    Swift

    var sendAt: Date? { get set }
  • validateSendAt() Default implementation

    Validates the sendAt date.

    Default Implementation

    The default implementation validates that the date is less than 72 hours in the future.

    Declaration

    Swift

    func validateSendAt() throws