Permalink
Browse files

Document that condvar support will be removed

  • Loading branch information...
1 parent 6e5a7c6 commit 749c141cdff66299cb5e4fea34dfa0813bddfc99 @miyagawa committed Jan 18, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Twiggy/Server.pm
View
@@ -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->(

0 comments on commit 749c141

Please sign in to comment.