'Get all tasks by type.
This is slower than accessing :attr:`tasks_by_type`,
but will be ordered by time.
Returns:
Generator: giving ``(uuid, Task)`` pairs.'

def _tasks_by_type(self, name, limit=None, reverse=True):

    return islice(((uuid, task) for (uuid, task) in self.tasks_by_time(reverse=reverse) if (task.name == name)), 0, limit)
