Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 760 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 767 of file qstdweb.cpp.

References adoptPromise(), callbacks, error, 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 221 of file qstdweb_p.h.

References adoptPromise(), args, callbacks, methodName(), and qFatal.

Referenced by QWasmVideoOutput::addCameraSourceElement(), qstdweb::Blob::arrayBuffer_sync(), and QWasmVideoOutput::videoFrameCallback().

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