Waiter

public struct Waiter<Input, Output>

A waiter is a client side abstraction used to poll a resource until a desired state is reached

  • An acceptor checks the result of a call and can change the waiter state based on that result

    See more

    Declaration

    Swift

    public struct Acceptor
  • Initialize an waiter

    Declaration

    Swift

    public init(
        acceptors: [AWSClient.Waiter<Input, Output>.Acceptor],
        minDelayTime: TimeAmount = .seconds(2),
        maxDelayTime: TimeAmount = .seconds(120),
        command: @escaping (
            Input,
            Logger,
            EventLoop?
        ) -> EventLoopFuture<Output>
    )

    Parameters

    acceptors

    List of acceptors

    minDelayTime

    minimum amount of time to wait between API calls

    maxDelayTime

    maximum amount of time to wait between API calls

    command

    API call