mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 16:28:00 +08:00
16 lines
289 B
JavaScript
16 lines
289 B
JavaScript
|
"use strict";
|
||
|
|
||
|
var Q = require("../q");
|
||
|
|
||
|
exports.fulfilled = Q.resolve;
|
||
|
exports.rejected = Q.reject;
|
||
|
exports.pending = function () {
|
||
|
var deferred = Q.defer();
|
||
|
|
||
|
return {
|
||
|
promise: deferred.promise,
|
||
|
fulfill: deferred.resolve,
|
||
|
reject: deferred.reject
|
||
|
};
|
||
|
};
|