Skip to content

clarification on behavior of runInWorker #107

@jlipps

Description

@jlipps

This minimal example:

import createPlugin from "@extism/extism";

async function main() {
  const plugin = await createPlugin('<some_wasm_file>', {useWasi: true, runInWorker: true});
}

main().catch(console.error);

Will hang, unless I call plugin.close(). Without runInWorker set to true, the process will terminate on its own, without calling plugin.close(). Is this expected? If so, it might be worth calling out in the docs as a usage distinction.

Metadata

Metadata

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