[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.


Generated at Wed Feb 07 20:56:31 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.