Perl5-IDEA icon indicating copy to clipboard operation
Perl5-IDEA copied to clipboard

Make async sub always return Future object

Open hurricup opened this issue 1 year ago • 0 comments

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();

hurricup avatar Aug 18 '24 07:08 hurricup