Skip to content

Consider changing FastlyAsyncTask to take a std::function or similar #1245

@TartanLlama

Description

@TartanLlama

FastlyAsyncTask currently takes an extra argument and a function pointer. This is a pain for cases where you want to close over a bunch of state, some of which may be C++ objects rather than JS values.

Care would need to be taken to ensure that JS values are stored inside Heap objects for GC safety.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions