Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Attributes | List of all members
flutter::EmbedderTaskRunner::DispatchTable Struct Reference

A. More...

#include <embedder_task_runner.h>

Public Attributes

std::function< void(EmbedderTaskRunner *task_runner, uint64_t task_baton, fml::TimePoint target_time)> post_task_callback
 
std::function< bool(void)> runs_task_on_current_thread_callback
 

Detailed Description

A.

Definition at line 25 of file embedder_task_runner.h.

Member Data Documentation

◆ post_task_callback

std::function<void(EmbedderTaskRunner* task_runner, uint64_t task_baton, fml::TimePoint target_time)> flutter::EmbedderTaskRunner::DispatchTable::post_task_callback

Delegates responsibility of deferred task execution to the embedder. Once the embedder gets the task, it must call EmbedderTaskRunner::PostTask with the supplied task_baton on the correct thread after the tasks target_time point expires.

Definition at line 35 of file embedder_task_runner.h.

◆ runs_task_on_current_thread_callback

std::function<bool(void)> flutter::EmbedderTaskRunner::DispatchTable::runs_task_on_current_thread_callback

Asks the embedder if tasks posted to it on this task runner via the post_task_callback will be executed (after task expiry) on the calling thread.

Definition at line 41 of file embedder_task_runner.h.


The documentation for this struct was generated from the following file: