# class AsyncResult

###

Module | soprano
Namespace | Soprano::Util
Class | AsyncResult
Inherits | QObject,Soprano::Error::ErrorCache

\class AsyncResult asyncmodel.h Soprano/Util/AsyncResult

A delayed result as returned by AsyncModel.

Author Sebastian Trueg <trueg@kde.org>

\since 2.1

### methods

- AsyncResult ( )

  returns ctor
  Not implemented

  \endcond

- resultReady (a0)

  returns Nothing
  SIGNAL ("resultReady (AsyncResult*)")

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.Util.AsyncResult |

  Emitted once the async operation is completed and the result can be read.

  The result will delete itself.

- setResult (result, error)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  result | QVariant |
  error | Soprano.Error.Error |

  Internal method. Do not call.

- value ( )

  returns QVariant

  The result of the async operation. Its type is dependent on the operation (for example Error.ErrorCode for AsyncModel.addStatementAsync or StatementIterator for AsyncModel.listStatementsAsync). Types may need to be registered with Q_DECLARE_METATYPE.

  Use Error.ErrorCache.lastError() to check for error details.

  This value is not ready before resultReady() as been emitted.