shikokuchuo / mirai

mirai - Minimalist Async Evaluation Framework for R
https://shikokuchuo.net/mirai/
GNU General Public License v3.0
193 stars 10 forks source link

Simplify mirai_map() collection syntax #148

Closed shikokuchuo closed 2 months ago

shikokuchuo commented 2 months ago

To use:

daemons(4)
mirai_map(1:4, Sys.sleep)[.progress, .flat]
daemons(0)

rather than the clunkier:

daemons(4)
mirai_map(1:4, Sys.sleep)[c(.progress, .flat)]
daemons(0)
codecov-commenter commented 2 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.70%. Comparing base (5c652ec) to head (6911580).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #148 +/- ## ======================================= Coverage 99.70% 99.70% ======================================= Files 9 9 Lines 670 671 +1 ======================================= + Hits 668 669 +1 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.