Skip to content

Coroutine gotcha: coroutines can change OS threads after suspend #6

@valbaca

Description

@valbaca

c/o @dump247

Creating an issue to track this and keep it as a future example to add:

Another thing I thought of that can be a gotcha for coroutines. A coroutine can change OS threads after it suspends. This can cause conflicts for resources that are tied to the thread, like ThreadLocal or a mutex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions