Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document that condvar support will be removed

  • Loading branch information...
commit 749c141cdff66299cb5e4fea34dfa0813bddfc99 1 parent 6e5a7c6
@miyagawa authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Twiggy/Server.pm
View
1  lib/Twiggy/Server.pm
@@ -303,6 +303,7 @@ sub _run_app {
if ( ref $res eq 'ARRAY' ) {
$self->_write_psgi_response($sock, $res);
} elsif ( blessed($res) and $res->isa("AnyEvent::CondVar") ) {
+ Carp::croak("Returning AnyEvent condvar is deprecated and will be removed in the next release of Twiggy. Use the streaming callback interface intstead.");
$res->cb(sub { $self->_write_psgi_response($sock, shift->recv) });
} elsif ( ref $res eq 'CODE' ) {
$res->(
Please sign in to comment.
Something went wrong with that request. Please try again.