'read all pages, lazily'

def read_all_tasks_on_demand(self, type_id):

    fetch_page = (lambda page_index, page_size: self.read_task_page_info_by_page_index(type_id, page_index, page_size))
    return OnDemandTaskList(fetch_page, self.page_size, self.limit)
