1threads::lite::list(3)User Contributed Perl Documentationthreads::lite::list(3)
2
3
4

NAME

6       threads::lite::list - Threaded list utilities
7

VERSION

9       Version 0.034
10

SYNOPSIS

12       This module implements some parallel list utilities op top of
13       threads::lite.
14

FUNCTIONS

16   parallel_map { block } $options, @elements
17       map a list using multiple threads. $options is a hashref whose keys are
18       like in "new".
19
20   parallel_grep { block } $options, @elements
21       grep a list using multiple threads. $options is a hashref whose keys
22       are like in "new".
23

CLASS METHODS

25       A parallel list processing object can be created if you want to reuse
26       your filter with other arguments.
27
28   new(%options)
29       Create a new parallel list processing object. It takes three named
30       arguments.
31
32       · code
33
34         A reference to the piece of code that should be executed, or it's
35         name. Note that if a name is given, it's containing module must be
36         loaded using "modules".
37
38       · modules
39
40         Modules that must be loaded be for the mapping or grepping.
41
42       · threads
43
44         The number of threads you want to use to do the mapping. The default
45         is currently 4, an arbitrary number that may change in the future.
46

INSTANCE METHODS

48   map(@elements)
49       Map elements in a parallel manner.
50
51   grep(@elements)
52       Grep elements in a parallel manner.
53

AUTHOR

55       Leon Timmermans, "<leont at cpan.org>"
56

BUGS

58       This is an early development release, and is expected to be buggy and
59       incomplete.
60
61       Please report any bugs or feature requests to "bug-threads-lite at
62       rt.cpan.org", or through the web interface at
63       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=threads-lite>.  I will
64       be notified, and then you'll automatically be notified of progress on
65       your bug as I make changes.
66

SUPPORT

68       You can find documentation for this module with the perldoc command.
69
70           perldoc threads::lite::list
71
72       You can also look for information at:
73
74       ·   RT: CPAN's request tracker
75
76           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=threads-lite>
77
78       ·   AnnoCPAN: Annotated CPAN documentation
79
80           <http://annocpan.org/dist/threads-lite>
81
82       ·   CPAN Ratings
83
84           <http://cpanratings.perl.org/d/threads-lite>
85
86       ·   Search CPAN
87
88           <http://search.cpan.org/dist/threads-lite>
89
91       Copyright 2009, 2010 Leon Timmermans, all rights reserved.
92
93       This program is free software; you can redistribute it and/or modify it
94       under the same terms as Perl itself.
95
96
97
98perl v5.32.0                      2020-07-28            threads::lite::list(3)
Impressum