Skip to content

Sample code for compute() #16265

@gajicm93

Description

@gajicm93

In Android you would do this by posting all work to a single HandlerThread, or in Kotlin Coroutines by running all coroutines in the context of the same thread.. But how to do it in Flutter?

I have a use case where I need to ensure a group of async function calls are all running on the same background thread sequentially, even though they can be called from multiple places and parts of the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions