Skip to content

If dynamic import() BLOCK JS thread? #168

@meowtec

Description

@meowtec

I am trying to modify js_load_file function, with adding some long-time I/O operations inside it, such as requesting module file from remote server , or just sleep(10) for test.
After add sleep(10) into js_load_file, the thread will be blocked by js_dynamic_import_job.

It would be better to make js_load_file a non-blocking function, or inside another thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions