| 1 | package Net::Async::Redis::Server; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use parent qw(IO::Async::Notifier); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | our $VERSION = '6.006'; # VERSION | |
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Net::Async::Redis::Server - basic server implementation | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | Best to wait until the 2.000 release for this one. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | 0 | ▶ | sub _add_to_loop { |
|
Subroutine
_add_to_loop: not called CC=1 SCAR=6.9
| |||
| 21 | 0 | my ($self, $loop) = @_; | |
| 22 | $self->add_child( | ||
| 23 | my $listener = IO::Async::Listener->new( | ||
| 24 | 0 | ▶ | on_stream => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 25 | 0 | my ($server, $stream) = @_; | |
| 26 | |||
| 27 | } | ||
| 28 | ) | ||
| 29 | 0 | ); | |
| 30 | } | ||
| 31 | |||
| 32 | 1 | 1; | |
| 33 | |||
| 34 | __END__ | ||