Skip to content

Instantly share code, notes, and snippets.

@leedo
Created August 6, 2011 00:28
Show Gist options
  • Select an option

  • Save leedo/1128839 to your computer and use it in GitHub Desktop.

Select an option

Save leedo/1128839 to your computer and use it in GitHub Desktop.
use AnyEvent::AIO;
use IO::AIO;
sub {
my $env = shift;
return sub {
my $respond = shift;
aio_open __FILE__, IO::AIO::O_RDONLY, 0, sub {
my $fh = shift;
warn $fh;
$respond->([200, [], $fh]);
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment