Skip to content

Conversation

@shikokuchuo
Copy link
Member

Closes #176.

The trick here is that as we resolve the promise from C (in a later call), we must construct the list in C on which to call resolve. We cannot resolve the Aio object itself, as that is "promising" and cannot be directly resolved.

The $then method is simplified and only needs to check for NNG errors. The reason we do this here is for Shiny deep stack trace support - the rejection cannot be made directly from a C level later callback.

@shikokuchuo shikokuchuo requested a review from thomasp85 August 15, 2025 09:40
Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shikokuchuo shikokuchuo merged commit 0753e89 into main Aug 15, 2025
13 checks passed
@shikokuchuo shikokuchuo deleted the ncurl branch August 15, 2025 10:35
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.

Improve ncurl_aio() promises method behaviour

3 participants