add qos support

Hi! I've added qos support. I've only checked prefetch_count, so I don't guarantee that other parameters work.
This whole function could be written as simply `assert self.task.done()` :wink: