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

Add Empty.{completed,immediate}Future()

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: