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
Represents multiple task results that are created when |
|
Represents multiple tasks that can be run together. |
|
Represents a self-contained operation that captures all necessary information in order to be run. |
|
Represents a task result that is produced when a |