Subject: | Can't call method "cancel" on unblessed reference ... |
Unit tests and so on occasionally throw
(in cleanup) Can't call method "cancel" on unblessed reference at /usr/share/perl5/Future.pm line 992 during global destruction.
(in cleanup) suggests DESTROY, and the only DESTROY in IO::Async is this one, in Process.pm:
518 sub DESTROY
519 {
520 my $self = shift;
521 $self->{finish_future}->cancel if $self->{finish_future};
522 }
Offhand I can't quite recall if we need or want that in there. If so perhaps it just needs guarding by Devel::GlobalDestruction. May be best to delete it though if it's not actually required.
--
Paul Evans