NAME

UV::Req - An outstanding request in libuv

SYNOPSIS

#!/usr/bin/env perl
use strict;
use warnings;

use UV;

my $loop = UV::Loop->default;

# A pending getaddrinfo is represented by a UV::Req
my $req = $loop->getaddrinfo(node => "localhost", service => "8080");

$req->cancel;

DESCRIPTION

This module provides an interface to libuv's req. Objects in this type are not directly constructed, but are returned by methods that perform some pending action, to represent the outstanding operation before it completes.

METHODS

UV::Req makes the following methods available.

cancel

$req->cancel

Stops the pending operation. The exact semantics will depend on the type of operation the request represents.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>

COPYRIGHT AND LICENSE

Copyright 2020, Paul Evans.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.