1 // ========================================================================== 2 // Project: SproutCore - JavaScript Application Framework 3 // Copyright: ©2006-2011 Strobe Inc. and contributors. 4 // Portions ©2008-2011 Apple Inc. All rights reserved. 5 // License: Licensed under MIT license (see license.js) 6 // ========================================================================== 7 8 /** 9 Represents a single task which can be run by a task queue. Note that tasks 10 are actually allowed to add themselves back onto the queue if they did not/ 11 might not finish. 12 */ 13 SC.Task = SC.Object.extend({ 14 run: function(queue) { 15 // if needed, you could put the task back on the queue for later finishing. 16 } 17 }); 18