Add Empty.{completed,immediate}Future()

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.

Activity

Show:
Done

Details

Assignee

Reporter

Labels

Components

Priority

Created January 30, 2024 at 1:38 PM
Updated January 31, 2024 at 4:03 PM
Resolved January 30, 2024 at 3:34 PM