Skip to content

Deprecate __FlutterEngineFlushPendingTasksNow and allow embedder to create their own threads and message loops. #16912

@chinmaygarde

Description

@chinmaygarde

__FlutterEngineFlushPendingTasksNow was added as a workaround for embedders to flush tasks on threads where the engine didn't own the message loop (or couldn't interact with the same as is the case on Android and Darwin). This API is hard to use and was a temporary hack. Remove the same and allow embedders to specify thread up front. This API has landed on the C++ side via the TaskRunner configuration passed to the Shell::Create call. This has to be wrapped up in the stable C API and exposed to custom embedders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: embedderUsers of the Embedder APIengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions