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

Delayed/asynchronous method replies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Remote Objects
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            bstottle Brett Stottlemyer
            Reporter:
            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