Skip to content

Try to use sobek#AsyncContextTracker to make group for async code #3392

Closed

Description

@mstoykov

Why?

As explained in #2728 group doesn't work with async functions (or execution).

This is not specific to group - anything that keeps state has problems with keeping that state in async execution.

This is more explored in the issue above and in this tc39 proposal.

What?

As the problem is so generic and was already kind of tried to be fixed for group in #2863 the point of this is to have a little bit mroe generic solution akin to the one in the tc39 proposal above.

This is a research task trying to make that possible and then make it possible to implement a group like API for async functions.

Probably after #2869 is also fixed.

The two issues though are orhogonal.

This can also be though of as continuation of #884

Activity

  1. added
    evaluation neededproposal needs to be validated or tested before fully implementing it in k6
    on Oct 13, 2023
  2. changed the title [-]Try to use `goja#AsyncContextTracker`[/-] [+]Try to use `goja#AsyncContextTracker` to make group for async code[/+] on Feb 5, 2025
  3. changed the title [-]Try to use `goja#AsyncContextTracker` to make group for async code[/-] [+]Try to use `sobek#AsyncContextTracker` to make group for async code[/+] on Feb 5, 2025
  4. andrewslotin commented on Oct 2, 2026

    @andrewslotin
    Contributor

    Closed via #6340 and #6341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    evaluation neededproposal needs to be validated or tested before fully implementing it in k6js-compat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions