From b72e83cd5a8864b011fd80b71d3c32011908a837 Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Wed, 4 Jun 2025 18:20:56 -0700 Subject: [PATCH] movie --- src/bun.js/web_worker.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bun.js/web_worker.zig b/src/bun.js/web_worker.zig index 9c578e2670..e34ec15b33 100644 --- a/src/bun.js/web_worker.zig +++ b/src/bun.js/web_worker.zig @@ -464,12 +464,6 @@ fn unhandledError(this: *WebWorker, _: anyerror) void { this.flushLogs(); } -pub export fn WebWorkerLifecycleHandle__requestTermination(handle: ?*WebWorkerLifecycleHandle) void { - if (handle) |h| { - h.requestTermination(); - } -} - fn spin(this: *WebWorker) void { log("[{d}] spin start", .{this.execution_context_id}); @@ -662,6 +656,12 @@ pub fn exitAndDeinit(this: *WebWorker) noreturn { bun.exitThread(); } +pub export fn WebWorkerLifecycleHandle__requestTermination(handle: ?*WebWorkerLifecycleHandle) void { + if (handle) |h| { + h.requestTermination(); + } +} + /// Manages the complex timing surrounding web worker creation and destruction const WebWorkerLifecycleHandle = struct { const RefCount = bun.ptr.ThreadSafeRefCount(@This(), "ref_count", WebWorkerLifecycleHandle.deinit, .{});