File: 52awaitable-future.pl

package info (click to toggle)
libfuture-perl 0.51-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: perl: 4,625; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 326 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use v5.10;
use strict;
use warnings;

use Test2::V0;

eval { require Test::Future::AsyncAwait::Awaitable } or
   plan skip_all => "No Test::Future::AsyncAwait::Awaitable";

use Future;

Test::Future::AsyncAwait::Awaitable::test_awaitable( "Future",
   class  => "Future",
   cancel => sub { shift->cancel },
);

done_testing;