Skip to content

How do I use a specific thread as the thread that runs the coroutine? #1744

@Black-tail

Description

@Black-tail

For example, when I use the OpenGL drawing program in an Android project, the drawing thread of the OpenGL is not the Main thread. In this case, Dispatchers.Main is not applicable. How do I launch a coroutine on the OpenGL drawing thread? As far as I know, Dispatchers.unconfig is not applicable to this case either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions