Skip to content

[question] Pass AbortSignal.aborted to C Code #1631

Open
@dormeiri

Description

Not sure if it is the right place...

I’m working with an AbortSignal and some C code (extern "C"). I need to pass a reference to AbortSignal.aborted (a boolean) to the C code, which runs async work.

Right now, I’m using a bool pointer and an addEventListener to update the value, but this hurts performance. Is there a way to directly reference aborted?

Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Need Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions