Table Of Contents
Table Of Contents

task

from inet.common

This module provides abstractions for generic tasks and their results.

Tasks are primarily useful because they can be created, passed around and stored before actually being run. This separation allows running the same tasks multiple times.

For example, creating an empty task and running it:

t = Task()
t.run()

Similarly, creating a multiple tasks object containing two empty tasks and running it:

mt = MultipleTasks([Task(), Task()])
mt.run()

Classes

MultipleTaskResults

Represents multiple task results that are created when MultipleTasks are run.

MultipleTasks

Represents multiple tasks that can be run together.

Task

Represents a self-contained operation that captures all necessary information in order to be run.

TaskResult

Represents a task result that is produced when a Task is run.