 		 *           }
 		 *           return 1; // loop finished
 		 *       }
-		 *   </code>
-		 *   Example 3 (nested resumable for loops):
-		 *   <code>
+		 * </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;

		 *           }
		 *           return 1; // outer loop finished
		 *       }
		 *   </code>
		 * @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

		 *           index++;
		 *           return index / array.length;  // this will return 1.0 on the last iteration.
		 *       }
		 * </listing>
		 * 
		 * @example Example 2 (resumable for loop):
		 * <listing version="3.0">
		 *       var array:Array = ['a','b','c','d'];
		 *       var index:int = 0;
		 *       function iterativeTaskWithTimer(returnTime:int):Number // this will be called only once in succession
