[YANGTOOLS-1566] Add Empty.{completed,immediate}Future() Created: 30/Jan/24 Updated: 31/Jan/24 Resolved: 30/Jan/24 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | common |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.13, 11.0.6, 13.0.2 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
yang.common.Empty is useful as a non-null no-semantics object. It would be useful if there were a place where we could get the equivalent of Futures.immediateVoidFuture(). Introduce Empty.immediateFuture(), which will fill this role. Since we are not taking sides, also add Empty.completedFuture(), which does the same for CompletionStages. |