Perl5-IDEA
Perl5-IDEA copied to clipboard
Make async sub always return Future object
Follow up on #2873
Our code insight does not understand that async sub return future, not the value
use v5.14;
use Future::AsyncAwait;
async sub mysub{
return 42
}
my $var = mysub();
say $var;
say $var->get();