PySide6.QtRemoteObjects.QRemoteObjectPendingCall¶
- class QRemoteObjectPendingCall¶
- Encapsulates the result of an asynchronous method call. More… - Inherited by: - QRemoteObjectPendingCallWatcher- Synopsis¶- Methods¶- def - __init__()
- def - error()
- def - isFinished()
- def - returnValue()
 - Static functions¶- Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- class Error¶
- This enum type specifies the possible error values for a remote call: - Constant - Description - QRemoteObjectPendingCall.NoError - No error occurred. - QRemoteObjectPendingCall.InvalidMessage - The default error state prior to the remote call finishing. 
 - __init__()¶
 - __init__(other)
- Parameters:
- other – - QRemoteObjectPendingCall
 
 - Returns the error, if any, from the remote call. - static fromCompletedCall(returnValue)¶
- Parameters:
- returnValue – object 
- Return type:
 
 - isFinished()¶
- Return type:
- bool 
 
 - Returns true if the remote call has finished, false otherwise. - A finished call will include a - returnValueor- error.- returnValue()¶
- Return type:
- object 
 
 - Returns the return value of the remote call. - returnValue will only be valid when the remote call has finished and there are no - errors.- waitForFinished([timeout=30000])¶
- Parameters:
- timeout – int 
- Return type:
- bool 
 
 - Blocks for up to - timeoutmilliseconds, until the remote call has finished.- Returns - trueon success,- falseotherwise.