2016-05-04 02:29:58 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-02-15 17:49:07 +00:00
|
|
|
#include <cxxreact/Executor.h>
|
|
|
|
#include <cxxreact/ExecutorToken.h>
|
2016-05-04 02:29:58 +00:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class that knows how to create the platform-specific implementation
|
|
|
|
* of ExecutorToken.
|
|
|
|
*/
|
|
|
|
class ExecutorTokenFactory {
|
|
|
|
public:
|
|
|
|
virtual ~ExecutorTokenFactory() {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a new ExecutorToken.
|
|
|
|
*/
|
|
|
|
virtual ExecutorToken createExecutorToken() const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} }
|