SYNOPSIS

use Testcontainers::Wait;

# Wait for a specific port
my $wait = Testcontainers::Wait::for_listening_port('80/tcp');

# Wait for the lowest exposed port
my $wait = Testcontainers::Wait::for_exposed_port();

DESCRIPTION

Waits for a TCP port to be listening on the container. This is the most common wait strategy, equivalent to Go's wait.ForListeningPort().

The container port to check (e.g., 80/tcp). If not set and use_lowest_port is true, uses the lowest exposed port.

If true, wait for the lowest exposed port instead of a specific one.

Check if the target port is listening. Returns true/false.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 37:

Unknown directive: =attr

Around line 49:

Unknown directive: =attr

Around line 85:

Unknown directive: =method