Skip to content

Add .join() to JsContext and JsWorker #24

Description

@alshdavid

Add a .join() function to JsContext and JsWorker to enable explicit waiting on completion

let w0 = //

let ctx = w0.create_context();

// Use context

// Block async until context completes
ctx.join().await;

// Block until context completes
ctx.join_blocking();

// Block async until context completes
w0.join().await;

// Block until context completes
w0.join_blocking();

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