MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / SetTimeout

Method SetTimeout

Polyfills/Window/Source/Window.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void Window::SetTimeout(const Napi::CallbackInfo& info)
69 {
70 auto function = Napi::Persistent(info[0].As<Napi::Function>());
71 auto milliseconds = std::chrono::milliseconds{info[1].As<Napi::Number>().Int32Value()};
72
73 auto& window = *static_cast<Window*>(info.Data());
74
75 window.RecursiveWaitOrCall(std::make_shared<Napi::FunctionReference>(std::move(function)), std::chrono::system_clock::now() + milliseconds);
76 }
77
78 Napi::Value Window::DecodeBase64(const Napi::CallbackInfo& info)
79 {

Callers

nothing calls this directly

Calls 4

PersistentFunction · 0.85
Int32ValueMethod · 0.80
RecursiveWaitOrCallMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected