Skip to content

Conversation

@tawsifkamal
Copy link
Contributor

Motivation

  • changed asyncify bug
    If the normal function already returns a promise, do not surround Promise<> type as async function collapses promises.

  • when a function is already returning a promise, making it async will not make it return <Promise<Promise>

  • It will just stay Promise as is

@tawsifkamal tawsifkamal requested review from a team and codegen-team as code owners February 6, 2025 22:19
@tawsifkamal tawsifkamal requested review from caroljung-cg and removed request for a team February 6, 2025 22:19
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ tawsifkamal
❌ codegen-bot


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files

@tawsifkamal tawsifkamal merged commit ff0727a into develop Feb 6, 2025
19 of 24 checks passed
@tawsifkamal tawsifkamal deleted the tawsif-fix-asyncify-promise-return-type branch February 6, 2025 22:26
jayhack pushed a commit that referenced this pull request Feb 9, 2025
# Motivation
- changed asyncify bug
If the normal function already returns a promise, do not surround
Promise<> type as async function collapses promises.

- when a function is already returning a promise, making it async will
not make it return <Promise<Promise<any>>
- It will just stay Promise<any> as is

Co-authored-by: codegen-bot <team+codegenbot@codegen.sh>
tkfoss pushed a commit that referenced this pull request Feb 10, 2025
# Motivation
- changed asyncify bug
If the normal function already returns a promise, do not surround
Promise<> type as async function collapses promises.

- when a function is already returning a promise, making it async will
not make it return <Promise<Promise<any>>
- It will just stay Promise<any> as is

Co-authored-by: codegen-bot <team+codegenbot@codegen.sh>
@PramaYudhistira
Copy link

Wahooooo good job bro creating shareholder value 😍😤😤🔥🔥🔥

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.

6 participants