Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstdweb::Promise Namespace Reference

Functions

void adoptPromise (emscripten::val promiseObject, PromiseCallbacks callbacks)
 
void all (std::vector< emscripten::val > promises, PromiseCallbacks callbacks)
 
template<typename... Args>
void make (emscripten::val target, QString methodName, PromiseCallbacks callbacks, Args... args)
 

Function Documentation

◆ adoptPromise()

void Q_CORE_EXPORT qstdweb::Promise::adoptPromise ( emscripten::val  promiseObject,
PromiseCallbacks  callbacks 
)

Definition at line 802 of file qstdweb.cpp.

References callbacks.

Referenced by all(), and make().

+ Here is the caller graph for this function:

◆ all()

void Q_CORE_EXPORT qstdweb::Promise::all ( std::vector< emscripten::val >  promises,
PromiseCallbacks  callbacks 
)

Definition at line 809 of file qstdweb.cpp.

References adoptPromise(), callbacks, qstdweb::PromiseCallbacks::catchFunc, error, qstdweb::PromiseCallbacks::finallyFunc, i, results, state, and qstdweb::PromiseCallbacks::thenFunc.

+ Here is the call graph for this function:

◆ make()

template<typename... Args>
void qstdweb::Promise::make ( emscripten::val  target,
QString  methodName,
PromiseCallbacks  callbacks,
Args...  args 
)

Definition at line 182 of file qstdweb_p.h.

References adoptPromise(), args, callbacks, methodName(), qFatal, and QString::toStdString().

Referenced by QWasmVideoOutput::addCameraSourceElement(), and QWasmVideoOutput::videoFrameCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: