aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ScriptExecutionContext.h
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-08-21 23:39:56 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-21 23:39:56 -0700
commit52802a4c556d7498d75d00e4fe4e45633f4283e8 (patch)
tree9d52b3c386ead79f02e8719c76f301ecfd058d25 /src/bun.js/bindings/ScriptExecutionContext.h
parent44e4d5852a1c31e1d124828fa6417d3d1884cdb2 (diff)
downloadbun-52802a4c556d7498d75d00e4fe4e45633f4283e8.tar.gz
bun-52802a4c556d7498d75d00e4fe4e45633f4283e8.tar.zst
bun-52802a4c556d7498d75d00e4fe4e45633f4283e8.zip
fix fsevents and stub for qwikcity (#4247)
* fix test * ok * cm * EE * remove the hack we didnt need
Diffstat (limited to 'src/bun.js/bindings/ScriptExecutionContext.h')
-rw-r--r--src/bun.js/bindings/ScriptExecutionContext.h14
1 files changed, 8 insertions, 6 deletions
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<Zig::GlobalObject*>(m_globalObject)->queueTaskConcurrently(task);
- } // Executes the task on context's thread asynchronously.
-
+ }
+ // Executes the task on context's thread asynchronously.
void postTask(Function<void(ScriptExecutionContext&)>&& lambda)
{
auto* task = new EventLoopTask(WTFMove(lambda));
reinterpret_cast<Zig::GlobalObject*>(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<Zig::GlobalObject*>(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<Zig::GlobalObject*>(m_globalObject)->queueTaskOnTimeout(task, static_cast<int>(timeout.milliseconds()));
- } // Executes the task on context's thread asynchronously.
+ }
+ // Executes the task on context's thread asynchronously.
void postTaskOnTimeout(Function<void(ScriptExecutionContext&)>&& lambda, Seconds timeout)
{
auto* task = new EventLoopTask(WTFMove(lambda));