Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1566

Add Empty.{completed,immediate}Future()

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 10.0.13, 11.0.6, 13.0.2
    • common

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: