Skip to content

Implement _enqueueImmediate #9001

@floitschG

Description

@floitschG

In an upcoming commit the library uses "_enqueueImmediate" with the following properties:
/** Enqueues the given callback before any other event in the event-loop. */
static void _enqueueImmediate(void callback())

Callbacks register through this function are always executed in order and are guaranteed to run before other asynchronous events (like [Timer] events, or DOM events).

Note: currently it would be ok to only allow one callback at a time. If you chose to implement the function with this behavior please let me (floitsch) know and I will update the documentation to make sure it won't be used otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.closed-obsoleteClosed as the reported issue is no longer relevant

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions