Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make is.promising an S3 method #104

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Make is.promising an S3 method #104

merged 4 commits into from
Apr 3, 2024

Conversation

jcheng5
Copy link
Member

@jcheng5 jcheng5 commented Mar 28, 2024

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?]).

jcheng5 added 4 commits March 27, 2024 21:28
That implementation couldn't detect methods defined as regular
functions in the current environment or whatever. I was spooked
enough to not want to try further.
@jcheng5 jcheng5 requested review from gadenbuie and wch and removed request for gadenbuie April 2, 2024 17:07
@jcheng5 jcheng5 merged commit 2a7dd7b into main Apr 3, 2024
29 checks passed
@jcheng5 jcheng5 deleted the is-promising-method branch April 3, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants