mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
postImmediateCppTask was unused
This commit is contained in:
@@ -382,17 +382,6 @@ void ScriptExecutionContext::postTask(EventLoopTask* task)
|
||||
{
|
||||
static_cast<Zig::GlobalObject*>(m_globalObject)->queueTask(task);
|
||||
}
|
||||
// Executes the task on context's thread immediately.
|
||||
void ScriptExecutionContext::postImmediateCppTask(Function<void(ScriptExecutionContext&)>&& lambda)
|
||||
{
|
||||
auto* task = new EventLoopTask(WTFMove(lambda));
|
||||
static_cast<Zig::GlobalObject*>(m_globalObject)->queueImmediateCppTask(task);
|
||||
}
|
||||
// Executes the task on context's thread immediately.
|
||||
void ScriptExecutionContext::postImmediateCppTask(EventLoopTask* task)
|
||||
{
|
||||
static_cast<Zig::GlobalObject*>(m_globalObject)->queueImmediateCppTask(task);
|
||||
}
|
||||
// Executes the task on context's thread asynchronously.
|
||||
void ScriptExecutionContext::postTaskOnTimeout(EventLoopTask* task, Seconds timeout)
|
||||
{
|
||||
|
||||
@@ -134,11 +134,7 @@ public:
|
||||
void postTaskOnTimeout(EventLoopTask* task, Seconds timeout);
|
||||
// Executes the task on context's thread asynchronously.
|
||||
void postTaskOnTimeout(Function<void(ScriptExecutionContext&)>&& lambda, Seconds timeout);
|
||||
// Executes the task on context's thread immediately.
|
||||
void postImmediateCppTask(Function<void(ScriptExecutionContext&)>&& lambda);
|
||||
// Executes the task on context's thread immediately.
|
||||
void postImmediateCppTask(EventLoopTask* task);
|
||||
// Queues the task to the immediate cpp queue
|
||||
|
||||
void queueImmediateCppTask(Function<void(ScriptExecutionContext&)>&& lambda);
|
||||
void queueImmediateCppTask(EventLoopTask* task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user