Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75603

Delayed/asynchronous method replies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.3
    • Remote Objects
    • None
    • Linux/X11

    Description

      Add a way to send asynchronous method call replies, something similar to QDBusMessage::setDelayed.

      How it could look:

      QString foo(const QString &bar, const QRemoteObjectCall &call)
      {
          call.setDelayed(true);
          LongTask *task = createTask(bar);
          connect(task, &LongTask::finished, this, [=]() {
              call.sendReply(task->result());
          }
          return QString();
      }
      

      Attachments

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

        Activity

          People

            bstottle Brett Stottlemyer
            nowrep David Rosca
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes