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

Refactor promise helpers to fix Interrupt with async code #1498

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

mstoykov
Copy link
Contributor

What?

This changes the promise helpers so after grafana/k6#4017 async code and Interrupt will work.

Why?

AbortingPromises seems to have not been used at all and just adds complexity. And promises.New() already does the remaining things needed to happen, so this can be merged even without grafana/k6#4017.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

@mstoykov
Copy link
Contributor Author

The failure seems to have nothing to do with this PR. it also happens in a scheduled test

Copy link
Collaborator

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@mstoykov
Copy link
Contributor Author

just FYI I don't have permissions to merge this, so if do it when you want

This changes the promise helpers so after grafana/k6#4017 async code and
Interrupt will work.

AbortingPromises seems to have not been used at all and just adds
complexity. And `promises.New()` already does the remaining things
needed to happen, so this can be merged even without grafana/k6#4017.
@ankur22 ankur22 merged commit 56449e9 into main Oct 25, 2024
22 of 23 checks passed
@ankur22 ankur22 deleted the fixAsyncInterrupt branch October 25, 2024 13:30
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.

3 participants