7#include <emscripten/proxying.h>
8#include <emscripten/threading.h>
56 T runTaskOnMainThread(
std::function<T()> task)
62 Q_CORE_EXPORT
void runAsync(
std::function<
void(
void)> fn);
63 Q_CORE_EXPORT
void runOnMainThread(
std::function<
void(
void)> fn);
64 Q_CORE_EXPORT
void runOnMainThreadAsync(
std::function<
void(
void)> fn);
void setTimeout(std::chrono::milliseconds timeout)
QWasmTimer(QWasmSuspendResumeControl *suspendResume, std::function< void()> handler)
QWasmTimer(QWasmTimer const &)=delete
QWasmTimer & operator=(QWasmTimer const &)=delete
qint64 size() const override
For open random-access devices, this function returns the size of the device.
bool seek(qint64 pos) override
For random-access devices, this function sets the current position to pos, returning true on success,...
Uint8ArrayIODevice(Uint8Array array)
bool isSequential() const override
Returns true if this device is sequential; otherwise returns false.
qint64 writeData(const char *data, qint64 size) override
Writes up to maxSize bytes from data to the device.
bool open(QIODevice::OpenMode mode) override
qint64 readData(char *data, qint64 maxSize) override
Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an...
void make(emscripten::val target, QString methodName, PromiseCallbacks callbacks, Args... args)
bool canBlockCallingThread()
const char makeContextfulPromiseFunctionName[]
static void usePotentialyUnusedSymbols()
decltype(auto) bindForever(F wrappedCallback)
std::function< void(emscripten::val)> thenFunc
std::function< void()> finallyFunc
std::function< void(emscripten::val)> catchFunc