Skip to content

Commit 3ea95ee

Browse files
committed
Improved Consume function
1 parent aa72b90 commit 3ea95ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/_PackageRoot/Runtime/Future/Future.API.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public IFuture<T> Consume(Action<T> consumer, bool replace = false)
1919
if (IsLoaded)
2020
{
2121
Safe.Run(consumer, value, LogLevel);
22+
return this;
2223
}
2324
else if (Status == FutureStatus.LoadingFromDiskCache || Status == FutureStatus.LoadingFromSource)
2425
{

0 commit comments

Comments
 (0)