@@ -85,7 +85,7 @@ public final Awaitable<T> withTimeout(Duration timeout) {
85
85
* Map the success result of this {@link Awaitable}.
86
86
*
87
87
* @param mapper the mapper to execute if this {@link Awaitable} completes with success. The
88
- * mapper can throw a {@link TerminalException}, thus failing the resulting operation .
88
+ * mapper can throw a {@link TerminalException}, thus failing the resulting {@link Awaitable} .
89
89
* @return a new {@link Awaitable} with the mapped result, when completed
90
90
*/
91
91
public final <U > Awaitable <U > map (ThrowingFunction <T , U > mapper ) {
@@ -111,9 +111,11 @@ public final <U> Awaitable<U> map(ThrowingFunction<T, U> mapper) {
111
111
* Map both the success and the failure result of this {@link Awaitable}.
112
112
*
113
113
* @param successMapper the mapper to execute if this {@link Awaitable} completes with success.
114
- * The mapper can throw a {@link TerminalException}, thus failing the resulting operation.
114
+ * The mapper can throw a {@link TerminalException}, thus failing the resulting {@link
115
+ * Awaitable}.
115
116
* @param failureMapper the mapper to execute if this {@link Awaitable} completes with failure.
116
- * The mapper can throw a {@link TerminalException}, thus failing the resulting operation.
117
+ * The mapper can throw a {@link TerminalException}, thus failing the resulting {@link
118
+ * Awaitable}.
117
119
* @return a new {@link Awaitable} with the mapped result, when completed
118
120
*/
119
121
public final <U > Awaitable <U > map (
@@ -147,10 +149,11 @@ public final <U> Awaitable<U> map(
147
149
}
148
150
149
151
/**
150
- * Map both the failure result of this {@link Awaitable}.
152
+ * Map the failure result of this {@link Awaitable}.
151
153
*
152
154
* @param failureMapper the mapper to execute if this {@link Awaitable} completes with failure.
153
- * The mapper can throw a {@link TerminalException}, thus failing the resulting operation.
155
+ * The mapper can throw a {@link TerminalException}, thus failing the resulting {@link
156
+ * Awaitable}.
154
157
* @return a new {@link Awaitable} with the mapped result, when completed
155
158
*/
156
159
public final Awaitable <T > mapFailure (ThrowingFunction <TerminalException , T > failureMapper ) {
0 commit comments