futureverse / future.mirai

:rocket: R package future.mirai: A Future API for Parallel Processing using 'mirai'
https://future.mirai.futureverse.org/
22 stars 1 forks source link

Can I use a foreach construct with future.mirai #10

Closed statquant closed 5 months ago

statquant commented 5 months ago

Hello, I was planing to try moving to mirai, can I expect a classic foreach to work using future.mirai ? Many thanks for your work

HenrikBengtsson commented 5 months ago

Yes, all future backends work with foreach via the doFuture package

HenrikBengtsson commented 5 months ago

See https://dofuture.futureverse.org/ for example. Just use plan(mirai_multisession) instead.