Home
last modified time | relevance | path

Searched refs:Promise (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/plugin/asciidocjs/node_modules/promise/setimmediate/
Dsynchronous.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.enableSynchronous = function () {
7 Promise.prototype.isPending = function() { class
11 Promise.prototype.isFulfilled = function() {
15 Promise.prototype.isRejected = function() {
19 Promise.prototype.getValue = function () {
31 Promise.prototype.getReason = function () {
43 Promise.prototype.getState = function () {
55 Promise.disableSynchronous = function() {
[all …]
Des6-extensions.js5 var Promise = require('./core.js'); variable
7 module.exports = Promise;
19 var p = new Promise(Promise._61);
24 Promise.resolve = function (value) {
25 if (value instanceof Promise) return value;
38 return new Promise(then.bind(value));
41 return new Promise(function (resolve, reject) {
49 Promise.all = function (arr) {
52 return new Promise(function (resolve, reject) {
57 if (val instanceof Promise && val.then === Promise.prototype.then) {
[all …]
Dcore.js52 module.exports = Promise;
54 function Promise(fn) { class
68 Promise._37 = null;
69 Promise._87 = null;
70 Promise._61 = noop;
72 Promise.prototype.then = function(onFulfilled, onRejected) {
73 if (this.constructor !== Promise) {
76 var res = new Promise(noop);
83 var res = new Promise(noop);
92 if (Promise._37) {
[all …]
Dnode-extensions.js6 var Promise = require('./core.js'); variable
9 module.exports = Promise;
13 Promise.denodeify = function (fn, argumentCount) {
47 return Function(['Promise', 'fn'], body)(Promise, fn);
93 )(Promise, fn);
96 Promise.nodeify = function (fn) {
106 return new Promise(function (resolve, reject) {
118 Promise.prototype.nodeify = function (callback, ctx) { class
Dfinally.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.prototype['finally'] = function (f) { class
8 return Promise.resolve(f()).then(function () {
12 return Promise.resolve(f()).then(function () {
/plugin/asciidocjs/node_modules/promise/domains/
Dsynchronous.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.enableSynchronous = function () {
7 Promise.prototype.isPending = function() { class
11 Promise.prototype.isFulfilled = function() {
15 Promise.prototype.isRejected = function() {
19 Promise.prototype.getValue = function () {
31 Promise.prototype.getReason = function () {
43 Promise.prototype.getState = function () {
55 Promise.disableSynchronous = function() {
[all …]
Des6-extensions.js5 var Promise = require('./core.js'); variable
7 module.exports = Promise;
19 var p = new Promise(Promise._61);
24 Promise.resolve = function (value) {
25 if (value instanceof Promise) return value;
38 return new Promise(then.bind(value));
41 return new Promise(function (resolve, reject) {
49 Promise.all = function (arr) {
52 return new Promise(function (resolve, reject) {
57 if (val instanceof Promise && val.then === Promise.prototype.then) {
[all …]
Dcore.js52 module.exports = Promise;
54 function Promise(fn) { class
68 Promise._37 = null;
69 Promise._87 = null;
70 Promise._61 = noop;
72 Promise.prototype.then = function(onFulfilled, onRejected) {
73 if (this.constructor !== Promise) {
76 var res = new Promise(noop);
83 var res = new Promise(noop);
92 if (Promise._37) {
[all …]
Dnode-extensions.js6 var Promise = require('./core.js'); variable
9 module.exports = Promise;
13 Promise.denodeify = function (fn, argumentCount) {
47 return Function(['Promise', 'fn'], body)(Promise, fn);
93 )(Promise, fn);
96 Promise.nodeify = function (fn) {
106 return new Promise(function (resolve, reject) {
118 Promise.prototype.nodeify = function (callback, ctx) { class
Dfinally.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.prototype['finally'] = function (f) { class
8 return Promise.resolve(f()).then(function () {
12 return Promise.resolve(f()).then(function () {
/plugin/asciidocjs/node_modules/promise/src/
Dsynchronous.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.enableSynchronous = function () {
7 Promise.prototype.isPending = function() { class
11 Promise.prototype.isFulfilled = function() {
15 Promise.prototype.isRejected = function() {
19 Promise.prototype.getValue = function () {
31 Promise.prototype.getReason = function () {
43 Promise.prototype.getState = function () {
55 Promise.disableSynchronous = function() {
[all …]
Des6-extensions.js5 var Promise = require('./core.js'); variable
7 module.exports = Promise;
19 var p = new Promise(Promise._noop);
24 Promise.resolve = function (value) {
25 if (value instanceof Promise) return value;
38 return new Promise(then.bind(value));
41 return new Promise(function (resolve, reject) {
49 Promise.all = function (arr) {
52 return new Promise(function (resolve, reject) {
57 if (val instanceof Promise && val.then === Promise.prototype.then) {
[all …]
Dcore.js52 module.exports = Promise;
54 function Promise(fn) { class
68 Promise._onHandle = null;
69 Promise._onReject = null;
70 Promise._noop = noop;
72 Promise.prototype.then = function(onFulfilled, onRejected) {
73 if (this.constructor !== Promise) {
76 var res = new Promise(noop);
83 var res = new Promise(noop);
92 if (Promise._onHandle) {
[all …]
Dnode-extensions.js6 var Promise = require('./core.js'); variable
9 module.exports = Promise;
13 Promise.denodeify = function (fn, argumentCount) {
47 return Function(['Promise', 'fn'], body)(Promise, fn);
93 )(Promise, fn);
96 Promise.nodeify = function (fn) {
106 return new Promise(function (resolve, reject) {
118 Promise.prototype.nodeify = function (callback, ctx) { class
Dfinally.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.prototype['finally'] = function (f) { class
8 return Promise.resolve(f()).then(function () {
12 return Promise.resolve(f()).then(function () {
/plugin/asciidocjs/node_modules/promise/lib/
Dsynchronous.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.enableSynchronous = function () {
7 Promise.prototype.isPending = function() { class
11 Promise.prototype.isFulfilled = function() {
15 Promise.prototype.isRejected = function() {
19 Promise.prototype.getValue = function () {
31 Promise.prototype.getReason = function () {
43 Promise.prototype.getState = function () {
55 Promise.disableSynchronous = function() {
[all …]
Des6-extensions.js5 var Promise = require('./core.js'); variable
7 module.exports = Promise;
19 var p = new Promise(Promise._61);
24 Promise.resolve = function (value) {
25 if (value instanceof Promise) return value;
38 return new Promise(then.bind(value));
41 return new Promise(function (resolve, reject) {
49 Promise.all = function (arr) {
52 return new Promise(function (resolve, reject) {
57 if (val instanceof Promise && val.then === Promise.prototype.then) {
[all …]
Dcore.js52 module.exports = Promise;
54 function Promise(fn) { class
68 Promise._37 = null;
69 Promise._87 = null;
70 Promise._61 = noop;
72 Promise.prototype.then = function(onFulfilled, onRejected) {
73 if (this.constructor !== Promise) {
76 var res = new Promise(noop);
83 var res = new Promise(noop);
92 if (Promise._37) {
[all …]
Dnode-extensions.js6 var Promise = require('./core.js'); variable
9 module.exports = Promise;
13 Promise.denodeify = function (fn, argumentCount) {
47 return Function(['Promise', 'fn'], body)(Promise, fn);
93 )(Promise, fn);
96 Promise.nodeify = function (fn) {
106 return new Promise(function (resolve, reject) {
118 Promise.prototype.nodeify = function (callback, ctx) { class
Dfinally.js3 var Promise = require('./core.js'); variable
5 module.exports = Promise;
6 Promise.prototype['finally'] = function (f) { class
8 return Promise.resolve(f()).then(function () {
12 return Promise.resolve(f()).then(function () {
/plugin/webdav/vendor/sabre/event/lib/Promise/
Dfunctions.php3 namespace Sabre\Event\Promise;
5 use Sabre\Event\Promise; alias
29 * @param Promise[] $promises
30 * @return Promise
34 return new Promise(function($success, $fail) use ($promises) {
68 * @param Promise[] $promises
69 * @return Promise
73 return new Promise(function($success, $fail) use ($promises) {
109 * @return Promise
113 if ($value instanceof Promise) {
[all …]
/plugin/davcal/vendor/sabre/event/tests/
H A DPromiseTest.php10 $promise = new Promise();
24 $promise = new Promise();
38 $promise = new Promise();
55 $promise = new Promise();
58 $subPromise = new Promise();
76 $promise = new Promise();
90 $promise = new Promise();
103 $promise = (new Promise(function($success, $fail) {
119 $promise = (new Promise(function($success, $fail) {
142 $promise = new Promise();
[all …]
/plugin/asciidocjs/node_modules/jake/test/integration/jakelib/
Dconcurrent.jake.js5 return new Promise((resolve, reject) => {
15 return new Promise((resolve, reject) => {
25 return new Promise((resolve, reject) => {
35 return new Promise((resolve, reject) => {
45 return new Promise((resolve, reject) => {
55 return new Promise((resolve, reject) => {
64 return new Promise((resolve, reject) => {
72 return new Promise((resolve, reject) => {
80 return new Promise((resolve, reject) => {
88 return new Promise((resolve, reject) => {
[all …]
/plugin/webdav/vendor/sabre/event/
DCHANGELOG.md8 * `Promise::all()` is moved to `Promise\all()`.
9 * Aside from the `Promise\all()` function, there's now also `Promise\race()`.
10 * `Promise\reject()` and `Promise\resolve()` have also been added.
11 * Now 100% compatible with the Ecmascript 6 Promise.
19 * Renamed `Promise::error` to `Promise::otherwise` to be consistent with
22 * #27: Support for Promise-based coroutines via the `Sabre\Event\coroutine`
51 * Added: Promise object!
/plugin/webdav/vendor/sabre/event/lib/
DPromise.php23 class Promise { class
90 * @return Promise
127 * @return Promise
248 * @param Promise $subPromise
252 private function invokeCallback(Promise $subPromise, callable $callBack = null) {
297 * @return Promise
310 * @param Promise[] $promises
312 * @return Promise
316 return Promise\all($promises);

12345678910>>...14