Lines Matching full:then

27 - Works with any object that has a `then` function.
35 primary way of interacting with a promise is through its `then` method, which
42 Callbacks are registered with the `then` method by providing an optional
50 $promise->then(
64 registered with the promises's `then` method. These callbacks are triggered
80 ->then(function ($value) {
84 // This then is executed after the first then and receives the value
85 // returned from the first then.
86 ->then(function ($value) {
98 Promises can be chained one after the other. Each then in the chain is a new
100 promise in the chain. Returning a promise in a `then` callback will cause the
112 ->then(function ($value) use ($nextPromise) {
116 ->then(function ($value) {
135 $promise->then(null, function ($reason) {
152 $promise->then(null, function ($reason) {
154 })->then(null, function ($reason) {
170 $promise->then(null, function ($reason) {
172 })->then(null, function ($reason) {
188 ->then(null, function ($reason) {
191 ->then(function ($value) {
204 wait function does not deliver a value, then an exception is thrown. The wait
315 - `then(callable $onFulfilled, callable $onRejected) : PromiseInterface`
363 $promise->then(function ($value) {
380 $promise->then(null, function ($reason) {
388 This library works with foreign promises that have a `then` method. This means
390 for example. When a foreign promise is returned inside of a then method
400 $guzzlePromise->then(function ($value) use ($reactPromise) {
419 you do not run the task queue, then promises will not be resolved.
446 resolved iteratively, allowing for "infinite" then chaining.
458 $p = $p->then(function ($v) {
471 then takes ownership of the handlers of each child promise and delivers values
499 $promise->then(function ($value) { echo $value; });