Adds a new activity capable of executing any user-defined task and setting an associated delay to the tail of a trajectory.
timeout(traj, task)
the trajectory object.
the timeout duration supplied by either passing a numeric value or a callable object (a function) that returns a numeric value (negative values are automatically coerced to positive).
The trajectory object.
Other methods for dealing with trajectories: create_trajectory, get_head, get_tail, get_n_activities, join, seize, release, set_attribute, branch, rollback, leave, seize_selected, release_selected, select.