Skip to content

Commit

Permalink
Added Value to the Future
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMurzak committed May 13, 2024
1 parent b289fa2 commit 3019304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assets/_PackageRoot/Runtime/Future/Future.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public partial class Future<T> : IFuture, IDisposable
private T value = default;
private Exception exception = default;

public T Value => value;
public bool IsCancelled => Status == FutureStatus.Canceled;
public bool IsLoaded => Status == FutureStatus.LoadedFromMemoryCache
|| Status == FutureStatus.LoadedFromDiskCache
Expand Down
2 changes: 1 addition & 1 deletion Assets/_PackageRoot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Ivan Murzak",
"url": "https://github.com/IvanMurzak"
},
"version": "5.3.1",
"version": "5.3.2",
"unity": "2019.2",
"description": "Asynchronous image loading from remote or local destination. It has two layers of configurable Memory and Disk cache systems.",
"dependencies": {
Expand Down

0 comments on commit 3019304

Please sign in to comment.