Adds a new activity capable of executing any user-defined task and setting an associated delay to the tail of a trajectory.
timeout(traj, duration)
the trajectory object.
a callable object (a function) that returns a numeric value (negative values are automatically converted to positive ones)
The trajectory object.
Other methods to deal with trajectories: create_trajectory, show_trajectory, get_head, get_tail, get_n_activities, seize, release, branch.