Skip to content

Join method - #25

Open
alshdavid wants to merge 6 commits into
mainfrom
join_method
Open

Join method#25
alshdavid wants to merge 6 commits into
mainfrom
join_method

Conversation

@alshdavid

Copy link
Copy Markdown
Collaborator
pub fn main() -> anyhow::Result<()> {
    let runtime = JsRuntime::initialize_once(JsRuntimeOptions::default())?;
    let worker = runtime.spawn_worker(JsWorkerOptions::default())?;
    let context = worker.create_context()?;

    context .eval("'Some JavaScript Code'")?;

    // New
    context .join()?;
    worker .join()?;

    Ok(())
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant