UNPKG

596 Btext/x-cView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
10#include <react/events/EventQueue.h>
11
12namespace facebook {
13namespace react {
14
15/*
16 * Event Queue that dispatches events as granular as possible without waiting
17 * for the next beat.
18 */
19class UnbatchedEventQueue final : public EventQueue {
20 public:
21 using EventQueue::EventQueue;
22
23 void enqueueEvent(const RawEvent &rawEvent) const override;
24};
25
26} // namespace react
27} // namespace facebook