![]() |
![]()
| ![]() |
![]()
NAMETest2::Tools::AsyncSubtest - Tools for writing async subtests. DESCRIPTIONThese are tools for writing async subtests. Async subtests are subtests which can be started and stashed so that they can continue to receive events while other events are also being generated. SYNOPSISuse Test2::Bundle::Extended; use Test2::Tools::AsyncSubtest; my $ast1 = async_subtest local => sub { ok(1, "Inside subtest"); }; my $ast2 = fork_subtest child => sub { ok(1, "Inside subtest in another process"); }; # You must call finish on the subtests you create. Finish will wait/join on # any child processes and threads. $ast1->finish; $ast2->finish; done_testing; EXPORTSEverything is exported by default.
NOTES
SOURCEThe source code repository for Test2-AsyncSubtest can be found at https://github.com/Test-More/test-more/. MAINTAINERSAUTHORSCOPYRIGHTCopyright Chad Granum <exodist7@gmail.com>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
|