Future.ready() only works when threads are available.

This commit is contained in:
Joseph Cloutier
2024-08-15 16:44:52 -04:00
parent 2866d099a2
commit 6873ae1fd4

View File

@@ -201,6 +201,7 @@ import lime.utils.Log;
**/
public function ready(waitTime:Int = -1):Future<T>
{
#if (lime_threads && !html5)
if (isComplete || isError)
{
return this;
@@ -221,6 +222,9 @@ import lime.utils.Log;
return this;
}
#else
return this;
#end
}
/**