Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QNapi::Promise Class Reference

#include <qnapi_p.h>

Inheritance diagram for QNapi::Promise:
Collaboration diagram for QNapi::Promise:

Public Member Functions

 Promise ()
 Promise (const Napi::Promise &other)
Promiseoperator= (const Napi::Promise &other)
Promise onThen (CallbackFuncWrapper &&onFulfilledFunc)
Promise onThen (CallbackFuncWrapper &&onFulfilledFunc, CallbackFuncWrapper &&onRejectedFunc)
Promise onCatch (CallbackFuncWrapper &&onRejectedFunc)
Promise onFinally (CallbackFuncWrapper &&onFinallyFunc)
Promise onThenAndFinally (CallbackFuncWrapper &&onFulfilledFunc, CallbackFuncWrapper &&onRejectedFunc, CallbackFuncWrapper &&onFinallyFunc)
template<typename Context>
PromiseWithContext< ContextwithContext (Context &&context)

Detailed Description

Definition at line 148 of file qnapi_p.h.

Constructor & Destructor Documentation

◆ Promise() [1/2]

QNapi::Promise::Promise ( )
inline

Definition at line 931 of file qnapi_p.h.

References Promise().

Referenced by Promise().

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

◆ Promise() [2/2]

QNapi::Promise::Promise ( const Napi::Promise & other)
inline

Definition at line 936 of file qnapi_p.h.

References Promise().

Referenced by Promise().

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

Member Function Documentation

◆ onCatch()

Promise QNapi::Promise::onCatch ( CallbackFuncWrapper && onRejectedFunc)
inline

Definition at line 959 of file qnapi_p.h.

Referenced by QNapi::PromiseWithContext< Context >::onCatchWithContext().

Here is the caller graph for this function:

◆ onFinally()

Promise QNapi::Promise::onFinally ( CallbackFuncWrapper && onFinallyFunc)
inline

Definition at line 965 of file qnapi_p.h.

Referenced by QNapi::PromiseWithContext< Context >::onFinallyWithContext().

Here is the caller graph for this function:

◆ onThen() [1/2]

Promise QNapi::Promise::onThen ( CallbackFuncWrapper && onFulfilledFunc)
inline

Definition at line 947 of file qnapi_p.h.

◆ onThen() [2/2]

Promise QNapi::Promise::onThen ( CallbackFuncWrapper && onFulfilledFunc,
CallbackFuncWrapper && onRejectedFunc )
inline

Definition at line 953 of file qnapi_p.h.

◆ onThenAndFinally()

Promise QNapi::Promise::onThenAndFinally ( CallbackFuncWrapper && onFulfilledFunc,
CallbackFuncWrapper && onRejectedFunc,
CallbackFuncWrapper && onFinallyFunc )
inline

Definition at line 971 of file qnapi_p.h.

◆ operator=()

Promise & QNapi::Promise::operator= ( const Napi::Promise & other)
inline

Definition at line 941 of file qnapi_p.h.

◆ withContext()

template<typename Context>
PromiseWithContext< Context > QNapi::Promise::withContext ( Context && context)

Definition at line 979 of file qnapi_p.h.


The documentation for this class was generated from the following file: