Closed jcheng5 closed 6 years ago
Might also be helpful for docs to point out that this is not how you take a result value and turn it into a promise (like $q.when(valueOrPromise)
). Instead, that is promise(~resolve(valueOrPromise))
.
Almost forgot, this PR also includes promise_lapply
utility function.
future::Future support is built in.
With this PR, you can seamlessly treat regular
future()
results as promises.An unsolved problem is that contexts that can take either promises or non-promises (like Shiny render functions) would have no way to know whether to attempt converting something to a promise or not.