|
Nui
|
#include <abort_signal.hpp>


Public Member Functions | |
| AbortSignal (Nui::val val) | |
| bool | aborted () const |
| A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not (false). | |
| Nui::val | reason () const |
| A JavaScript value providing the abort reason, once the signal has aborted. | |
| void | abort () const |
| The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event). | |
| void | abort (Nui::val reason) const |
| The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event). | |
| void | timeout (std::chrono::milliseconds time) const |
| The AbortSignal.timeout() static method returns an AbortSignal that will automatically abort after a specified time. | |
Public Member Functions inherited from Nui::ValWrapper | |
| ValWrapper (Nui::val valObject) | |
| virtual | ~ValWrapper ()=default |
| ValWrapper (ValWrapper const &)=default | |
| ValWrapper (ValWrapper &&) noexcept=default | |
| ValWrapper & | operator= (ValWrapper const &)=default |
| ValWrapper & | operator= (ValWrapper &&) noexcept=default |
| Nui::val const & | val () const &noexcept |
| Nui::val | val () &&noexcept |
| operator Nui::val const & () const &noexcept | |
| operator Nui::val () &&noexcept | |
Additional Inherited Members | |
Protected Attributes inherited from Nui::ValWrapper | |
| Nui::val | val_ |
|
explicit |
| void Nui::WebApi::AbortSignal::abort | ( | ) | const |
The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).
| void Nui::WebApi::AbortSignal::abort | ( | Nui::val | reason | ) | const |
The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).
| reason | The reason why the operation was aborted, which can be any JavaScript value. If not specified, the reason is set to "AbortError" DOMException. |
| bool Nui::WebApi::AbortSignal::aborted | ( | ) | const |
A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not (false).
| Nui::val Nui::WebApi::AbortSignal::reason | ( | ) | const |
A JavaScript value providing the abort reason, once the signal has aborted.
| void Nui::WebApi::AbortSignal::timeout | ( | std::chrono::milliseconds | time | ) | const |
The AbortSignal.timeout() static method returns an AbortSignal that will automatically abort after a specified time.
The signal aborts with a TimeoutError DOMException on timeout.
| time | A time to timeout on. |