5#ifndef FLUTTER_FML_TASK_RUNNER_H_
6#define FLUTTER_FML_TASK_RUNNER_H_
8#include "flutter/fml/closure.h"
9#include "flutter/fml/macros.h"
10#include "flutter/fml/memory/ref_counted.h"
11#include "flutter/fml/memory/ref_ptr.h"
12#include "flutter/fml/message_loop_task_queues.h"
13#include "flutter/fml/time/time_point.h"
72 FML_FRIEND_REF_COUNTED_THREAD_SAFE(
TaskRunner);
An interface over the ability to schedule tasks on a TaskRunner.
virtual void PostTask(const fml::closure &task)=0
static void RunNowOrPostTask(const fml::RefPtr< fml::TaskRunner > &runner, const fml::closure &task)
virtual void PostTaskForTime(const fml::closure &task, fml::TimePoint target_time)
virtual void PostTask(const fml::closure &task) override
TaskRunner(fml::RefPtr< MessageLoopImpl > loop)
virtual bool RunsTasksOnCurrentThread()
virtual TaskQueueId GetTaskQueueId()
virtual void PostDelayedTask(const fml::closure &task, fml::TimeDelta delay)
std::function< void()> closure