GRAYBYTE WORDPRESS FILE MANAGER7251

Server IP : 162.213.255.40 / Your IP : 216.73.216.114
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/updraftplus/vendor/guzzlehttp/promises/src/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/updraftplus/vendor/guzzlehttp/promises/src//Each.php
<?php

namespace GuzzleHttp\Promise;

final class Each
{
    /**
     * Given an iterator that yields promises or values, returns a promise that
     * is fulfilled with a null value when the iterator has been consumed or
     * the aggregate promise has been fulfilled or rejected.
     *
     * $onFulfilled is a function that accepts the fulfilled value, iterator
     * index, and the aggregate promise. The callback can invoke any necessary
     * side effects and choose to resolve or reject the aggregate if needed.
     *
     * $onRejected is a function that accepts the rejection reason, iterator
     * index, and the aggregate promise. The callback can invoke any necessary
     * side effects and choose to resolve or reject the aggregate if needed.
     *
     * @param mixed    $iterable    Iterator or array to iterate over.
     * @param callable $onFulfilled
     * @param callable $onRejected
     *
     * @return PromiseInterface
     */
    public static function of(
        $iterable,
        callable $onFulfilled = null,
        callable $onRejected = null
    ) {
        return (new EachPromise($iterable, [
            'fulfilled' => $onFulfilled,
            'rejected'  => $onRejected
        ]))->promise();
    }

    /**
     * Like of, but only allows a certain number of outstanding promises at any
     * given time.
     *
     * $concurrency may be an integer or a function that accepts the number of
     * pending promises and returns a numeric concurrency limit value to allow
     * for dynamic a concurrency size.
     *
     * @param mixed        $iterable
     * @param int|callable $concurrency
     * @param callable     $onFulfilled
     * @param callable     $onRejected
     *
     * @return PromiseInterface
     */
    public static function ofLimit(
        $iterable,
        $concurrency,
        callable $onFulfilled = null,
        callable $onRejected = null
    ) {
        return (new EachPromise($iterable, [
            'fulfilled'   => $onFulfilled,
            'rejected'    => $onRejected,
            'concurrency' => $concurrency
        ]))->promise();
    }

    /**
     * Like limit, but ensures that no promise in the given $iterable argument
     * is rejected. If any promise is rejected, then the aggregate promise is
     * rejected with the encountered rejection.
     *
     * @param mixed        $iterable
     * @param int|callable $concurrency
     * @param callable     $onFulfilled
     *
     * @return PromiseInterface
     */
    public static function ofLimitAll(
        $iterable,
        $concurrency,
        callable $onFulfilled = null
    ) {
        return self::ofLimit(
            $iterable,
            $concurrency,
            $onFulfilled,
            function ($reason, $idx, PromiseInterface $aggregate) {
                $aggregate->reject($reason);
            }
        );
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
AggregateException.php
0.371 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
CancellationException.php
0.179 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Coroutine.php
4.244 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Create.php
2.063 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Each.php
2.822 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
EachPromise.php
7.599 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
FulfilledPromise.php
1.944 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Is.php
0.976 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Promise.php
8.734 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
PromiseInterface.php
2.785 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
PromisorInterface.php
0.238 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
RejectedPromise.php
2.23 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
RejectionException.php
1.189 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
TaskQueue.php
1.895 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
TaskQueueInterface.php
0.423 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Utils.php
8.506 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
functions.php
9.891 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
functions_include.php
0.163 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF