From 52802a4c556d7498d75d00e4fe4e45633f4283e8 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Mon, 21 Aug 2023 23:39:56 -0700 Subject: fix fsevents and stub for qwikcity (#4247) * fix test * ok * cm * EE * remove the hack we didnt need --- src/bun.js/bindings/ScriptExecutionContext.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/bun.js/bindings/ScriptExecutionContext.h') diff --git a/src/bun.js/bindings/ScriptExecutionContext.h b/src/bun.js/bindings/ScriptExecutionContext.h index 6f10dced7..5a43544df 100644 --- a/src/bun.js/bindings/ScriptExecutionContext.h +++ b/src/bun.js/bindings/ScriptExecutionContext.h @@ -173,22 +173,24 @@ public: { auto* task = new EventLoopTask(WTFMove(lambda)); reinterpret_cast(m_globalObject)->queueTaskConcurrently(task); - } // Executes the task on context's thread asynchronously. - + } + // Executes the task on context's thread asynchronously. void postTask(Function&& lambda) { auto* task = new EventLoopTask(WTFMove(lambda)); reinterpret_cast(m_globalObject)->queueTask(task); - } // Executes the task on context's thread asynchronously. + } + // Executes the task on context's thread asynchronously. void postTask(EventLoopTask* task) { reinterpret_cast(m_globalObject)->queueTask(task); - } // Executes the task on context's thread asynchronously. - + } + // Executes the task on context's thread asynchronously. void postTaskOnTimeout(EventLoopTask* task, Seconds timeout) { reinterpret_cast(m_globalObject)->queueTaskOnTimeout(task, static_cast(timeout.milliseconds())); - } // Executes the task on context's thread asynchronously. + } + // Executes the task on context's thread asynchronously. void postTaskOnTimeout(Function&& lambda, Seconds timeout) { auto* task = new EventLoopTask(WTFMove(lambda)); -- cgit v1.2.3