Lines Matching full:then
27 - Works with any object that has a `then` function.
50 primary way of interacting with a promise is through its `then` method, which
56 Callbacks are registered with the `then` method by providing an optional
64 $promise->then(
78 registered with the promise's `then` method. These callbacks are triggered
93 ->then(function ($value) {
97 // This then is executed after the first then and receives the value
98 // returned from the first then.
99 ->then(function ($value) {
110 Promises can be chained one after the other. Each then in the chain is a new
112 promise in the chain. Returning a promise in a `then` callback will cause the
124 ->then(function ($value) use ($nextPromise) {
128 ->then(function ($value) {
147 $promise->then(null, function ($reason) {
164 $promise->then(null, function ($reason) {
166 })->then(null, function ($reason) {
182 $promise->then(null, function ($reason) {
184 })->then(null, function ($reason) {
200 ->then(null, function ($reason) {
203 ->then(function ($value) {
217 wait function does not deliver a value, then an exception is thrown. The wait
326 - `then(callable $onFulfilled, callable $onRejected) : PromiseInterface`
374 $promise->then(function ($value) {
391 $promise->then(null, function ($reason) {
399 This library works with foreign promises that have a `then` method. This means
401 for example. When a foreign promise is returned inside of a then method
411 $guzzlePromise->then(function ($value) use ($reactPromise) {
430 you do not run the task queue, then promises will not be resolved.
454 resolved iteratively, allowing for "infinite" then chaining.
466 $p = $p->then(function ($v) {
479 then takes ownership of the handlers of each child promise and delivers values
506 $promise->then(function ($value) { echo $value; });