Package perl-Future-AsyncAwait: Information

  • Default inline alert: Version in the repository: 0.66-alt3

Source package: perl-Future-AsyncAwait
Version: 0.65-alt1
Latest version according to Repology
Build time:  Mar 20, 2023, 05:55 PM in the task #317046
Category: Development/Perl
Report package bug
License: perl
Summary: deferred subroutine syntax for futures
Description: 
use Future::AsyncAwait;

 async sub do_a_thing
 {
    my $first = await do_first_thing();

    my $second = await do_second_thing();

    return combine_things( $first, $second );
 }

 do_a_thing()->get;

This module provides syntax for deferring and resuming subroutines while
waiting for the Future manpages to complete.

WARNING: The actual semantics in this module are not yet implemented. This
is released purely to demonstrate the syntax parts of its operation, to
reserve the name on CPAN, and to provide something that actually exists in
order to look at it. Don't expect to be able to use this module in any real
code yet.

That said, the only part that isn't actually implemented currently is the part
that suspends and resumes subroutines while waiting for a future to complete.
The syntax parsing, as well as semantics for immediate futures, are already
defined and working now. So it is already very slightly useful for writing
simple functions that return immediate futures.

Instead of writing

 sub foo
 {
    ...
    return Future->done( @result );
 }

you can now simply write

 async sub
 {
    ...
    return @result;
 }

with the added side-benefit that any exceptions thrown by the elided code will
be turned into an immediate-failed `Future' rather than making the call
itself propagate the exception, which is usually what you wanted when dealing
with futures.

List of rpms provided by this srpm:
perl-Future-AsyncAwait (x86_64, ppc64le, i586, armh, aarch64)
perl-Future-AsyncAwait-debuginfo (x86_64, ppc64le, i586, armh, aarch64)

Maintainer: Igor Vlasenko

List of contributors:
Igor Vlasenko
Cronbuild Service

ACL:
Igor Vlasenko
@everybody

    1. perl(ExtUtils/CBuilder.pm)
    2. perl(Future.pm)
    3. perl(IO/Async/Loop.pm)
    4. perl(Module/Build.pm)
    5. perl(Object/Pad.pm)
    6. perl(Role/Tiny.pm)
    7. perl(Role/Tiny/With.pm)
    8. perl(Syntax/Keyword/Defer.pm)
    9. perl(Syntax/Keyword/Dynamically.pm)
    10. perl(Syntax/Keyword/Match.pm)
    11. perl(Syntax/Keyword/MultiSub.pm)
    12. perl(Syntax/Keyword/Try.pm)
    13. perl(Test/Fatal.pm)
    14. perl(Test/Future/Deferred.pm)
    15. perl(Test/MemoryGrowth.pm)
    16. perl(Test/More.pm)
    17. perl(Test/Refcount.pm)
    18. perl(Test2/V0.pm)
    19. perl(XS/Parse/Keyword.pm)
    20. perl(XS/Parse/Keyword/Builder.pm)
    21. perl(XS/Parse/Sublike.pm)
    22. perl(XS/Parse/Sublike/Builder.pm)
    23. perl(experimental.pm)
    24. perl-devel
    25. perl-podlators
    26. rpm-build-perl

Last changed


March 20, 2023 Igor Vlasenko 0.65-alt1
- automated CPAN update
Feb. 15, 2023 Igor Vlasenko 0.64-alt1
- automated CPAN update
Feb. 12, 2023 Igor Vlasenko 0.63-alt1
- automated CPAN update