// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_TASK_UTILS_H_ #define V8_TASK_UTILS_H_ #include #include namespace v8 { namespace internal { class CancelableIdleTask; class CancelableTask; class CancelableTaskManager; class Isolate; std::unique_ptr MakeCancelableTask(Isolate*, std::function); std::unique_ptr MakeCancelableTask(CancelableTaskManager*, std::function); std::unique_ptr MakeCancelableIdleTask( Isolate*, std::function); std::unique_ptr MakeCancelableIdleTask( CancelableTaskManager* manager, std::function); } // namespace internal } // namespace v8 #endif // V8_TASK_UTILS_H_