DavisVaughan / furrr

Apply Mapping Functions in Parallel using Futures
https://furrr.futureverse.org/
Other
699 stars 40 forks source link

Force `total_size` resolution #163

Closed DavisVaughan closed 4 years ago

DavisVaughan commented 4 years ago

It is possible for getGlobalsAndPackages() to return a $globals slot that isn't a FutureGlobals and doesn't have a resolved total_size attribute (https://github.com/HenrikBengtsson/future/issues/410). Here we try and resolve those edge cases manually to avoid double calls to objectSize()