 		 *           }
 		 *           return 1; // outer loop finished
 		 *       }
-		 *   </code>
+		 * </listing>
 		 * @param priority The task priority, which should be one of the static constants in WeaveAPI.
 		 * @param finalCallback A function that should be called after the task is completed.
 		 * @see weave.api.WeaveAPI

		 *   When the task is completed, iterativeTask() should return 1.0.
		 *   The optional parameter specifies the time when the function should return. If the function accepts the returnTime
		 *   parameter, it will not be called repeatedly within the same frame even if it returns before the returnTime.
		 *   Example 1 (for loop replaced by if):
		 *   <code>
		 *       var array:Array = ['a','b','c','d'];
		 *       var index:int = 0;
		 *       function iterativeTask():Number // this may be called repeatedly in succession

		 *           }
		 *           return 1; // loop finished
		 *       }
		 * </listing>
		 * 
		 * @example Example 3 (nested resumable for loops):
		 * <listing version="3.0">
		 * 	     var outerArray:Array = [['a','b','c'], ['aa','bb','cc'], ['x','y','z'], ['xx','yy','zz']];
		 *       var outerIndex:int = 0;
		 *       var innerArray:Array = null;
