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::PromiseWithContext< Context > Class Template Reference

#include <qnapi_p.h>

Inheritance diagram for QNapi::PromiseWithContext< Context >:
Collaboration diagram for QNapi::PromiseWithContext< Context >:

Public Member Functions

 PromiseWithContext (const Promise &promise, std::shared_ptr< Context > context)
PromiseWithContext onThenWithContext (ExtendedCallbackFuncWrapper< Context & > &&onFulfilledFunc)
PromiseWithContext onThenWithContext (ExtendedCallbackFuncWrapper< Context & > &&onFulfilledFunc, CallbackFuncWrapper &&onRejectedFunc)
PromiseWithContext onCatchWithContext (ExtendedCallbackFuncWrapper< Context & > &&onRejectedFunc)
PromiseWithContext onFinallyWithContext (ExtendedCallbackFuncWrapper< Context & > &&onFinallyFunc)
Public Member Functions inherited from QNapi::Promise
 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

template<typename Context>
class QNapi::PromiseWithContext< Context >

Definition at line 170 of file qnapi_p.h.

Constructor & Destructor Documentation

◆ PromiseWithContext()

template<typename Context>
QNapi::PromiseWithContext< Context >::PromiseWithContext ( const Promise & promise,
std::shared_ptr< Context > context )

Definition at line 985 of file qnapi_p.h.

Member Function Documentation

◆ onCatchWithContext()

template<typename Context>
PromiseWithContext< Context > QNapi::PromiseWithContext< Context >::onCatchWithContext ( ExtendedCallbackFuncWrapper< Context & > && onRejectedFunc)

Definition at line 1019 of file qnapi_p.h.

References QNapi::Promise::onCatch().

Here is the call graph for this function:

◆ onFinallyWithContext()

template<typename Context>
PromiseWithContext< Context > QNapi::PromiseWithContext< Context >::onFinallyWithContext ( ExtendedCallbackFuncWrapper< Context & > && onFinallyFunc)

Definition at line 1031 of file qnapi_p.h.

References QNapi::Promise::onFinally().

Here is the call graph for this function:

◆ onThenWithContext() [1/2]

template<typename Context>
PromiseWithContext< Context > QNapi::PromiseWithContext< Context >::onThenWithContext ( ExtendedCallbackFuncWrapper< Context & > && onFulfilledFunc)

Definition at line 992 of file qnapi_p.h.

◆ onThenWithContext() [2/2]

template<typename Context>
PromiseWithContext< Context > QNapi::PromiseWithContext< Context >::onThenWithContext ( ExtendedCallbackFuncWrapper< Context & > && onFulfilledFunc,
CallbackFuncWrapper && onRejectedFunc )

Definition at line 1004 of file qnapi_p.h.


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