summaryrefslogtreecommitdiff
path: root/runtime/ops/worker_host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/worker_host.rs')
-rw-r--r--runtime/ops/worker_host.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs
index 1d056d459..3cfad5abb 100644
--- a/runtime/ops/worker_host.rs
+++ b/runtime/ops/worker_host.rs
@@ -35,6 +35,7 @@ pub struct CreateWebWorkerArgs {
pub permissions: PermissionsContainer,
pub main_module: ModuleSpecifier,
pub worker_type: WebWorkerType,
+ pub close_on_idle: bool,
pub maybe_worker_metadata: Option<JsMessageData>,
}
@@ -114,6 +115,7 @@ pub struct CreateWorkerArgs {
source_code: String,
specifier: String,
worker_type: WebWorkerType,
+ close_on_idle: bool,
}
/// Create worker as the host
@@ -191,6 +193,7 @@ fn op_create_worker(
permissions: worker_permissions,
main_module: module_specifier.clone(),
worker_type,
+ close_on_idle: args.close_on_idle,
maybe_worker_metadata,
});