Skip to content

newSingleThread/ThreadPoolContext shall not include a Job #149

Closed
@elizarov

Description

@elizarov

The coroutine context that is returned by newSingleThread/newThreadPoolContext function should not include a Job. It should provide only an instance of CoroutineDispatcher similarly to what Executor.asCoroutineDispatcher() extension does.

As Job in this context causes problems when multiple contexts are combined, as it overrides the Job from the parent context, blocking the propagation of cancellation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions