|
Ultralight C++ API 2.0.0
|
Classes | |
| class | Task< T > |
| A coroutine that returns a JavaScript Promise to the page. More... | |
Functions | |
| template<typename Fn> | |
| auto | RunOnWorker (Fn &&fn) |
| Run a function on a background thread, then resume the coroutine on the Renderer's thread with its return value: | |
| template<typename T = Value> requires Marshalable<T> | |
| auto | Await (const Value &promise) |
| Wait for a JavaScript promise from a Task: | |
| template<typename T = Value, typename R> requires (Marshalable<T> && std::is_same_v<std::remove_cvref_t<R>, Result<Value>>) | |
| auto | Await (R &&call) |
| Call a JavaScript function and wait for the Promise it returns, from a Task: | |
Namespaces | |
| namespace | ultralight |
| Root namespace for every public Ultralight type, function, and enumeration. | |
| namespace | ultralight::js |
| Type-checked JavaScript bridge between C++ and web pages. | |