rstudio / promises

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

Make is.promising an S3 method #104

Closed jcheng5 closed 3 months ago

jcheng5 commented 3 months ago

This will let frameworks besides Future work seamlessly with promise pipes and Shiny's reactives and ExtendedTask.

Question: Should is.promising.default look for an as.promise method for the object? That would be the easiest, but would potentially be slow (we could maybe get clever about caching results [would we have to invalidate that cache when the list of loaded namespaces changes?]).