NAME

Net::ACME::Certificate::Pending - for when the cert isn’t ready yet

SYNOPSIS

my $need_retry = Net::ACME::Certificate::Pending->new(
    uri => 'http://path/to/cert',
    retry_after => 30,  #i.e., retry after 30 seconds
);

my $cert;

while (!$cert) {
    if ($need_retry->is_time_to_poll()) {
        $cert = $need_retry->poll();
    }

    sleep 1;
}