Page MenuHomePhorge

MatrixPromiseMock.qml
No OneTemporary

Size
476 B
Referenced Files
None
Subscribers
None

MatrixPromiseMock.qml

/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import QtQuick 2.15
QtObject {
signal resolved(var isSuccess, var data)
signal succeeded(var data)
signal failed(var data)
function onResolved(isSuccess, data) {
if (isSuccess) {
succeeded(data);
} else {
failed(data);
}
}
function resolve(isSuccess, data) {
resolved(isSuccess, data);
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 11:22 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40286
Default Alt Text
MatrixPromiseMock.qml (476 B)

Event Timeline