Skip to content

Commit

Permalink
Future.ready() only works when threads are available.
Browse files Browse the repository at this point in the history
  • Loading branch information
player-03 committed Aug 15, 2024
1 parent 2866d09 commit 6873ae1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lime/app/Future.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -221,6 +222,9 @@ import lime.utils.Log;

return this;
}
#else
return this;
#end
}

/**
Expand Down

0 comments on commit 6873ae1

Please sign in to comment.