thread...e::list(3pm)

πŸ“¦
version 0.034 Β· 2 versions
, in fedora 43

✨ NAME ✨

okay bestie, welcome to threads::lite::list πŸ’– β€” it's a lil module that gives you threaded list utilities. literally that's it, that's the whole vibe 🧚


🌸 VERSION 🌸

Version 0.034 β€” she's young, she's fresh, she's still figuring herself out 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

This module implements some parallel list utilities on top of threads::lite. no cap, that's the whole pitch πŸ’…


πŸ’– FUNCTIONS πŸ’–

🌈 parallel_map { block } $options, @elements

map a list using multiple threads πŸ”₯ $options is a hashref whose keys are like in "new".

🌈 parallel_grep { block } $options, @elements

grep a list using multiple threads ✨ $options is a hashref whose keys are like in "new".


πŸ‘‘ CLASS METHODS πŸ‘‘

A parallel list processing object can be created if you want to reuse your filter with other arguments. main character energy, honestly πŸ’…

πŸŽ€ new(%options)

Create a new parallel list processing object πŸ¦‹ It takes three named arguments.

  • code β€” A reference to the piece of code that should be executed, or it's name. note that if a name is given, it's containing module must be loaded using "modules". πŸ‘€
  • modules β€” Modules that must be loaded be for the mapping or grepping. 🌸
  • threads β€” The number of threads you want to use to do the mapping. The default is currently 4, an arbitrary number that may change in the future πŸ’€ (yes, four. she said what she said.)

πŸ’… INSTANCE METHODS πŸ’…

⭐ map(@elements)

Map elements in a parallel manner. slay πŸ”₯

⭐ grep(@elements)

Grep elements in a parallel manner. also slay 🌈


🌸 AUTHOR 🌸

Leon Timmermans, "<leont at cpan.org>" πŸ’œ iconic, we stan


πŸ’€ BUGS πŸ’€

This is an early development release, and is expected to be buggy and incomplete. bestie she is NOT done cooking, be nice to her 😭

Please report any bugs or feature requests to "bug-threads-lite at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=threads-lite>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. mutuals looking out for mutuals fr fr 🫢


🫢 SUPPORT 🫢

You can find documentation for this module with the perldoc command.

perldoc threads::lite::list

You can also look for information at:


Copyright 2009, 2010 Leon Timmermans, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt πŸ’…


and that's the whole page bestie!! this one shipped as part of User Contributed Perl Documentation, with perl at v5.42.0, dated 2025-07-25 β€” go forth and thread your lists, ily πŸ’–βœ¨

πŸ“¦ where this page comes from