Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54033

Create a withTimeout helper function for Futures

    XMLWordPrintableJSON

Details

    • Service Arch

    Description

      whenAny is a function that takes in a vector of futures and returns a future that is resolved as soon as one of its inputs resolves. This function is currently used to create futures with timeouts. Since we anticipate this functionality being used quite often, create a free function which allows timeouts to be declared on Futures easily.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            tyler.seip@mongodb.com Tyler Seip (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: