This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new e62d26f1b2 Added allTasks to return tasks in requested order.
e62d26f1b2 is described below

commit e62d26f1b2bca51ec62e891996cec8f7eb290dd5
Author: Harbs <[email protected]>
AuthorDate: Tue Mar 4 10:10:51 2025 +0200

    Added allTasks to return tasks in requested order.
---
 .../apache/royale/utils/async/CompoundAsyncTask.as | 29 ++++++++++++++--------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/CompoundAsyncTask.as
 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/CompoundAsyncTask.as
index 2125140581..55a89368ed 100644
--- 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/CompoundAsyncTask.as
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/CompoundAsyncTask.as
@@ -40,6 +40,13 @@ package org.apache.royale.utils.async
                        failedTasks = [];
                }
                protected var tasks:Array;
+               /**
+                * Returns all requested tasks in order specified.
+                * @productversion Royale 0.9.13
+                */
+               public function get allTasks():Array{
+                       return tasks.slice();
+               }
 
                private var _failEarly:Boolean;
                /**
@@ -72,19 +79,21 @@ package org.apache.royale.utils.async
                protected var pendingTasks:Array;
 
                /**
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion Royale 0.9.6
-                *  @royalesuppresspublicvarwarning
+                * Returns the completed tasks in order of completion 
+                * @langversion 3.0
+                * @playerversion Flash 10.2
+                * @playerversion AIR 2.6
+                * @productversion Royale 0.9.6
+                * @royalesuppresspublicvarwarning
                 */
                public var completedTasks:Array;
                /**
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion Royale 0.9.6
-                *  @royalesuppresspublicvarwarning
+                * Returns the failed tasks in order of failure
+                * @langversion 3.0
+                * @playerversion Flash 10.2
+                * @playerversion AIR 2.6
+                * @productversion Royale 0.9.6
+                * @royalesuppresspublicvarwarning
                 */
                public var failedTasks:Array;
 

Reply via email to