MainQueueExecutor.h 452 B

123456789101112131415161718192021
  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. #include <folly/Executor.h>
  8. namespace facebook {
  9. namespace react {
  10. class MainQueueExecutor : public folly::Executor {
  11. public:
  12. static MainQueueExecutor &instance();
  13. void add(folly::Func function) override;
  14. };
  15. } // namespace react
  16. } // namespace facebook