Lines Matching refs:function

186 Transforms a promise's value by applying a function to the promise's fulfillment
269 ->otherwise(function (\RuntimeException $reason) {
273 ->otherwise(function ($reason) {
370 $resolver = function (callable $resolve, callable $reject, callable $notify) {
382 $canceller = function () {
392 The promise constructor receives a resolver function and an optional canceller
393 function which both will be called with 3 arguments:
395 * `$resolve($value)` - Primary function that seals the fate of the
402 * `$notify($update)` - Deprecated function that issues progress events for the promise.
407 The resolver function will be called immediately, the canceller function only
444 $factory = function () {
455 $promise->then(function ($value) {
569 Traditional map function, similar to `array_map()`, but allows input to contain
572 The map function receives each item as argument, where item is a fully resolved
581 Traditional reduce function, similar to `array_reduce()`, but input may contain
598 function getAwesomeResultPromise()
602 // Execute a Node.js-style function using the callback pattern
603 computeAwesomeResultAsynchronously(function ($error, $result) use ($deferred) {
617 function ($value) {
620 function ($reason) {
623 function ($update) {
633 typically be spread across several function calls, or even several levels of
649 ->then(function ($x) {
654 ->then(function ($x) {
660 ->then(function ($x) {
666 ->then(function ($x) {
689 ->then(function ($x) {
692 ->otherwise(function (\Exception $x) {
696 ->otherwise(function (\Exception $x) {
702 ->otherwise(function ($x) {
718 ->then(function ($x) {
721 ->then(function ($x) {
724 ->otherwise(function (\Exception $x) {
729 ->then(function ($x) {
760 ->progress(function ($update) {
763 ->progress(function ($update) {
795 function getJsonResult()
800 function ($jsonResultString) {
804 function ($jsonErrorString) {
816 function ($jsonResultObject) {
825 function ($jsonResultObject) {
828 function (ApiErrorException $exception) {