… | |
… | |
11 | |
11 | |
12 | AnyEvent::Handle - non-blocking I/O on file handles via AnyEvent |
12 | AnyEvent::Handle - non-blocking I/O on file handles via AnyEvent |
13 | |
13 | |
14 | =cut |
14 | =cut |
15 | |
15 | |
16 | our $VERSION = 4.901; |
16 | our $VERSION = 4.91; |
17 | |
17 | |
18 | =head1 SYNOPSIS |
18 | =head1 SYNOPSIS |
19 | |
19 | |
20 | use AnyEvent; |
20 | use AnyEvent; |
21 | use AnyEvent::Handle; |
21 | use AnyEvent::Handle; |
… | |
… | |
624 | |
624 | |
625 | sub timeout { |
625 | sub timeout { |
626 | my ($self, $timeout) = @_; |
626 | my ($self, $timeout) = @_; |
627 | |
627 | |
628 | $self->{timeout} = $timeout; |
628 | $self->{timeout} = $timeout; |
|
|
629 | delete $self->{_tw}; |
629 | $self->_timeout; |
630 | $self->_timeout; |
630 | } |
631 | } |
631 | |
632 | |
632 | # reset the timeout watcher, as neccessary |
633 | # reset the timeout watcher, as neccessary |
633 | # also check for time-outs |
634 | # also check for time-outs |