Investigate Future::onCompletion/onError API improvement

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      With SERVER-86355 we discovered that we were mistakenly swallowing an error within the callback function used for onCompletion. This lead to check if there are other places where we were swallowing errors.

      Adding !(future_details::isCallableExactR<void, Func, StatusOrStatusWith<T>>) to the concept requirements of onCompletion alone lead us to file SERVER-86398, SERVER-86397 and SERVER-86396 which explored potential misuses of the API.

      This ticket is about considering if we should explore a more strict API so we have to explicitly choose to swallow errors.

            Assignee:
            Unassigned
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: