File: 52awaitable-future.t

package info (click to toggle)
libfuture-asyncawait-perl 0.70-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 528 kB
  • sloc: perl: 2,647; ansic: 118; pascal: 34; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

use v5.14;
use warnings;

use Test2::V0;

use Test::Future::AsyncAwait::Awaitable qw( test_awaitable );

use Future;
use Future::AsyncAwait; # for the back-compat shim

test_awaitable "Future",
   class  => "Future",
   cancel => sub { shift->cancel };

done_testing;