Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-265

Implement hooks as async functions

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Major
    • None
    • 1.0.0-dp.12
    • fit, library
    • 3

    Description

      Hooks can actually mutate or remove a document.   When they do so, they should call into the cluster in the typical async fashion.   Doing so, they would need to be passed a callback to call when done.   

       

      For now, I have a workaround where we spawn a thread, call the cluster operation and return.  Then, the hook monitors the future (with wait(0), and a this_thread::sleep_for) until it is done.   Ugly, but ok for now.   Lets redo this, and so they hooks can be called as if they are (at least potentially) async, with a callback.

      Attachments

        Issue Links

          For Gerrit Dashboard: CXXCBC-265
          # Subject Branch Project Status CR V

          Activity

            People

              Dimitris.Christodoulou Dimitris Christodoulou
              david.kelly David Kelly (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes