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

Use tidy principles for `daemons()` 'dispatcher' argument #157

Closed shikokuchuo closed 2 months ago

shikokuchuo commented 2 months ago

As suggested by @hadley in https://github.com/shikokuchuo/mirai/pull/142#discussion_r1759529472.

Now with threaded dispatcher, this argument is no longer boolean. However, it is easy to continue using the existing name and special case the existing TRUE/FALSE so they continue to work as before.

Replacing with dispatcher = c("process", "thread", "none") has the following additional advantages: