10000 Work on #403, javadocs updated · mryba/java-design-patterns@ad11ea4 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad11ea4

Browse files
committed
Work on iluwatar#403, javadocs updated
1 parent 5796e19 commit ad11ea4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

promise/src/main/java/com/iluwatar/promise/Promise.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
import java.util.function.Function;
3030

3131
/**
32-
* Implements the promise pattern.
32+
* A Promise represents a proxy for a value not necessarily known when the promise is created. It
33+
* allows you to associate dependent promises to an asynchronous action's eventual success value or
34+
* failure reason. This lets asynchronous methods return values like synchronous methods: instead
35+
* of the final value, the asynchronous method returns a promise of having a value at some point
36+
* in the future.
3337
*
3438
* @param <T> type of result.
3539
*/

0 commit comments

Comments
 (0)
0