https://github.com/mkende/perl_parallel_task_executor
Cross-platform executor for parallel tasks executed in forked processes.
https://github.com/mkende/perl_parallel_task_executor
executor fork ipc perl promise
Last synced: 4 months ago
JSON representation
Cross-platform executor for parallel tasks executed in forked processes.
- Host: GitHub
- URL: https://github.com/mkende/perl_parallel_task_executor
- Owner: mkende
- License: mit
- Created: 2023-10-28T22:17:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-03T22:35:49.000Z (8 months ago)
- Last Synced: 2025-01-12T06:28:28.321Z (6 months ago)
- Topics: executor, fork, ipc, perl, promise
- Language: Perl
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# Parallel::TaskExecutor
Cross-platform executor for parallel tasks executed in forked processes.
## Summary
This module provides a simple interface to run Perl code in forked processes and
receive the result of their processing. This is quite similar to
[Parallel::ForkManager](https://metacpan.org/pod/Parallel::ForkManager) with a
different OO approach, more centered on the task object that can be seen as a
very lightweight promise.## Example
```perl
my $executor = Parallel::TaskExecutor->new();
my $task = $executor->run(sub { return 'foo' });
$task->wait();
is($task->data(), 'foo');
```## Documentation
See
[this module documentation on CPAN](https://metacpan.org/pod/Parallel::ForkManager).