/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/runtime/PlatformTimerRegistry.h
32 строки
800 B
Arushi Kesarwani
Bridgeless -> Runtime (#39099)
29 авг 2023, 03:46
29 авг 2023, 03:46
62e1110
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> namespace facebook::react { /** * This interface is implemented by each platform. * Responsibility: Call into some platform API to register/schedule, or delete * registered/scheduled timers. */ class PlatformTimerRegistry { public: virtual void createTimer(uint32_t timerID, double delayMS) = 0; virtual void deleteTimer(uint32_t timerID) = 0; virtual void createRecurringTimer(uint32_t timerID, double delayMS) = 0; virtual ~PlatformTimerRegistry() noexcept = default; }; using TimerManagerDelegate = PlatformTimerRegistry; } // namespace facebook::react