diff options
author | 2022-12-02 20:48:57 -0800 | |
---|---|---|
committer | 2022-12-02 20:48:57 -0800 | |
commit | fe4f39fd17b8ffbb809871b9e4c6550063f15657 (patch) | |
tree | 94e3b98898cd9d8b62804cec72fc81776a841135 /src/bun.js/bindings/ZigGlobalObject.cpp | |
parent | 9cc03cd71a2e42b489b8b0c837cdb0d1b1d3fa0b (diff) | |
download | bun-fe4f39fd17b8ffbb809871b9e4c6550063f15657.tar.gz bun-fe4f39fd17b8ffbb809871b9e4c6550063f15657.tar.zst bun-fe4f39fd17b8ffbb809871b9e4c6550063f15657.zip |
Add `AbortSignal.timeout`
Diffstat (limited to 'src/bun.js/bindings/ZigGlobalObject.cpp')
-rw-r--r-- | src/bun.js/bindings/ZigGlobalObject.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp index 50a07f06e..775382d82 100644 --- a/src/bun.js/bindings/ZigGlobalObject.cpp +++ b/src/bun.js/bindings/ZigGlobalObject.cpp @@ -3368,6 +3368,7 @@ void GlobalObject::visitChildrenImpl(JSCell* cell, Visitor& visitor) } extern "C" void Bun__queueTask(JSC__JSGlobalObject*, WebCore::EventLoopTask* task); +extern "C" void Bun__queueTaskWithTimeout(JSC__JSGlobalObject*, WebCore::EventLoopTask* task, int timeout); extern "C" void Bun__queueTaskConcurrently(JSC__JSGlobalObject*, WebCore::EventLoopTask* task); extern "C" void Bun__performTask(Zig::GlobalObject* globalObject, WebCore::EventLoopTask* task) { @@ -3379,6 +3380,11 @@ void GlobalObject::queueTask(WebCore::EventLoopTask* task) Bun__queueTask(this, task); } +void GlobalObject::queueTaskOnTimeout(WebCore::EventLoopTask* task, int timeout) +{ + Bun__queueTaskWithTimeout(this, task, timeout); +} + void GlobalObject::queueTaskConcurrently(WebCore::EventLoopTask* task) { Bun__queueTaskConcurrently(this, task); |