Lines Matching refs:promise
10 $promise = new Promise();
11 $promise->fulfill(1);
13 $promise->then(function($value) use (&$finalValue) {
24 $promise = new Promise();
25 $promise->reject(1);
27 $promise->then(null, function($value) use (&$finalValue) {
38 $promise = new Promise();
39 $promise->fulfill(1);
41 $promise->then(function($value) use (&$finalValue) {
55 $promise = new Promise();
56 $promise->fulfill(1);
60 $promise->then(function($value) use ($subPromise) {
76 $promise = new Promise();
78 $promise->then(function($value) use (&$finalValue) {
82 $promise->fulfill(4);
90 $promise = new Promise();
92 $promise->then(null, function($value) use (&$finalValue) {
96 $promise->reject(4);
103 $promise = (new Promise(function($success, $fail) {
119 $promise = (new Promise(function($success, $fail) {
142 $promise = new Promise();
143 $promise->fulfill(1);
144 $promise->fulfill(1);
153 $promise = new Promise();
154 $promise->reject(1);
155 $promise->reject(1);
162 $promise = new Promise();
163 $promise->error(function($reason) {
179 $promise->reject('foo');