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 44554906c8 Asdded canceled getter
44554906c8 is described below

commit 44554906c86067c564aa2f8c27e683ce317be5f8
Author: Harbs <[email protected]>
AuthorDate: Wed Jun 3 16:53:38 2026 +0300

    Asdded canceled getter
---
 .../main/royale/org/apache/royale/utils/async/AsyncTask.as    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/AsyncTask.as
 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/AsyncTask.as
index ecd49dd67f..9055d9ce64 100644
--- 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/AsyncTask.as
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/async/AsyncTask.as
@@ -178,6 +178,17 @@ package org.apache.royale.utils.async
       _status = "canceled";
       notifyDone();
     }
+    /**
+     * canceled (and a status of `canceled`) means the task was canceled 
before completion
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 1.0.0
+     */
+    public function get canceled():Boolean
+    {
+      return _status == "canceled";
+    }
 
     private var _data:Object;
     /**

Reply via email to