FrontPanel API 5.3.6
Loading...
Searching...
No Matches
OpalKelly::ScriptEngine::AsyncResultHandler Class Referenceabstract

Result handler for asynchronous operations. More...

Public Member Functions

virtual void OnResult (const std::string &error, ScriptValues retvals)=0
 Callback called in another thread context.
 

Detailed Description

The lifetime of this object must be long enough to ensure that it is still available when the asynchronous operation terminates.

Member Function Documentation

◆ OnResult()

virtual void OpalKelly::ScriptEngine::AsyncResultHandler::OnResult ( const std::string & error,
ScriptValues retvals )
pure virtual

If error is not empty, the asynchronous operation has failed and the contents of retvals doesn't matter, otherwise it contains the results of the operation.


Copyright (c) 2005-2024 Opal Kelly Incorporated