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

fix(ext/http): Deno.Server should not be thenable #20723

Merged
merged 6 commits into from
Oct 9, 2023

Conversation

lucacasonato
Copy link
Member

Otherwise you can not return Deno.Server from async functions.

Fixes #20446

Otherwise you can not return `Deno.Server` from async functions.
cli/tests/unit/serve_test.ts Outdated Show resolved Hide resolved
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

The example in #20446 looks a legit usage.

LGTM when CI error is resolved

@mmastrac
Copy link
Contributor

Good catch. LGTM!

cli/tests/unit/serve_test.ts Outdated Show resolved Hide resolved
@lucacasonato lucacasonato merged commit ae81065 into denoland:main Oct 9, 2023
13 checks passed
bartlomieju added a commit that referenced this pull request Oct 12, 2023
Otherwise you can not return `Deno.Server` from async functions.

Co-authored-by: Yoshiya Hinosawa <[email protected]>
Co-authored-by: Bartek Iwańczuk <[email protected]>
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.

Deno errors when an async function returns Deno.Server
4 participants