rstudio / promises

A promise library for R
https://rstudio.github.io/promises
Other
201 stars 19 forks source link

promise_all() does not handle NULL values correctly #49

Closed wch closed 5 years ago

wch commented 5 years ago

This it what I'd expect it to do:

> promise_all(promise_resolve(NULL), promise_resolve(NULL)) %...>% print()
[[1]]
NULL

[[2]]
NULL

This is what it actually does:

> promise_all(promise_resolve(NULL), promise_resolve(NULL)) %...>% print()
[[1]]
[1] NA