open-collaboration-protocol
Version:
Open Collaboration Protocol implementation, part of the Open Collaboration Tools project
14 lines • 589 B
JavaScript
// ******************************************************************************
// Copyright 2024 TypeFox GmbH
// This program and the accompanying materials are made available under the
// terms of the MIT License, which is available in the project root.
// ******************************************************************************
export class Deferred {
resolve;
reject;
promise = new Promise((resolve, reject) => {
this.resolve = (arg) => (resolve(arg), this);
this.reject = (err) => (reject(err), this);
});
}
//# sourceMappingURL=promise.js.map