NAME
Chrome::DevToolsProtocol::Transport::NetAsync - IO::Async backend
SYNOPSIS
my $got_endpoint = Future->done( "ws://..." );
my $t = Chrome::DevToolsProtocol::Transport::NetAsync->new;
$t->connect( $handler, $got_endpoint, $logger)
->then(sub {
my( $connection ) = @_;
print "We are connected\n";
});
$transport->sleep( $seconds )
$transport->sleep( 10 )->get; # wait for 10 seconds
Returns a Future that will be resolved in the number of seconds given.