NAME
Langertha::Role::Runnable - Common async execution contract (run_f) for runnable nodes
VERSION
version 0.503
SYNOPSIS
package My::Runnable;
use Moose;
use Future::AsyncAwait;
with 'Langertha::Role::Runnable';
async sub run_f {
my ( $self, $ctx ) = @_;
...
}
DESCRIPTION
Minimal, dependency-free execution contract: consumers implement run_f($ctx) and return a Future. A generic core primitive with no coupling to any particular runner — the Raider agent and the Raid orchestration nodes in the langertha-raider distribution are consumers, but nothing here depends on them.
run_f
my $result = await $node->run_f($ctx);
Required method. Executes the runnable node with a context and returns a Future that resolves to a result object.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.
IRC
Join #langertha on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.