Chrome::DevToolsProtocol::Transport::NetAsync - IO::Async backend
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.
To install WWW::Mechanize::Chrome, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mechanize::Chrome
CPAN shell
perl -MCPAN -e shell install WWW::Mechanize::Chrome
For more information on module installation, please visit the detailed CPAN module installation guide.