Skip to content

Possibly unnecessary SkipQueue? #899

@vilacha

Description

@vilacha

I don't understand the "skipQueue" logic. Let's say that I want to have all my tasks to be "abortable". If I add a signal to all instantiations of a task, none of them goes into TaskQueue, they all are inside "skipQueue". Looking into the source code, one can see that aborting a task kills the thread when needed or removes the given task from TaskQueue, which is what the user would expect. To me skipQueue seems to be unnecessary. Abortable tasks should not have a greater priority. I think this behaviour should be reconsidered. As it is right now it is imposible to build a queue with cancellable tasks, only possible when returning at least 1 in the size method of a custom queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions