#include <abort_controller.hpp>
◆ AbortController() [1/2]
| Nui::WebApi::AbortController::AbortController |
( |
| ) |
|
◆ AbortController() [2/2]
| Nui::WebApi::AbortController::AbortController |
( |
Nui::val |
val | ) |
|
|
explicit |
◆ abort() [1/2]
| void Nui::WebApi::AbortController::abort |
( |
| ) |
const |
Aborts an asynchronous operation before it has completed.
This is able to abort fetch requests, consumption of any response bodies, and streams.
◆ abort() [2/2]
| void Nui::WebApi::AbortController::abort |
( |
Nui::val |
reason | ) |
const |
Aborts an asynchronous operation before it has completed.
This is able to abort fetch requests, consumption of any response bodies, and streams.
- Parameters
-
| reason | The reason why the operation was aborted, which can be any JavaScript value. If not specified, the reason is set to "AbortError" DOMException. |
◆ signal()
The documentation for this class was generated from the following files: