<?php
namespace Fifa\ConnectId\Sdk\ApiClient\Async;

/**
 * Interface WaitTimeStrategyInterface
 * @package Fifa\ConnectId\Sdk\ApiClient\Async
 */
interface WaitTimeStrategyInterface
{
    /**
     * @param int $attempt
     * @return int - microseconds
     */
    public function next(int $attempt): int;

    /**
     * @param int $totalWaitTimeSeconds
     * @return void
     */
    public function feedback(int $totalWaitTimeSeconds);
}