Becomes another future. This and result become the same: both are completed with the same result and both receive the same interrupt signals. @param result the future to become.
(final Future<T> result)
| 207 | * @param result the future to become. |
| 208 | */ |
| 209 | public final void become(final Future<T> result) { |
| 210 | if (!becomeIfEmpty(result)) |
| 211 | throw new IllegalStateException("Can't set result " + result + " for promise with state " + state); |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Becomes another future only if this promise is undefined. This and result |