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

Let async functions return invisibly #48

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Let async functions return invisibly #48

merged 3 commits into from
Aug 22, 2024

Conversation

shikokuchuo
Copy link
Contributor

This PR closes #46 so that returned promises objects are not printed. Includes a unit test.

@lionel-
Copy link
Member

lionel- commented Aug 22, 2024

Thanks for taking a look! Does this also affect stepping with generators? Could you check and add a test for that as well please.

@shikokuchuo
Copy link
Contributor Author

I've amended my original commit + added a test to confirm scope is limited to 'async' functions.

@lionel-
Copy link
Member

lionel- commented Aug 22, 2024

Perfect. Can you please also add a NEWS bullet, tagging the issue and yourself?

@shikokuchuo
Copy link
Contributor Author

Done, and mentioned in the function docs so it's unambiguous.

@lionel- lionel- merged commit 8cf2232 into r-lib:main Aug 22, 2024
10 of 11 checks passed
@lionel-
Copy link
Member

lionel- commented Aug 22, 2024

Thanks!

@shikokuchuo shikokuchuo deleted the dev branch August 22, 2024 14:07
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.

async() should return invisibly?
2 participants