ofLimit example


    public static function ofLimitAll(
        $iterable,
        $concurrency,
        callable $onFulfilled = null
    ): PromiseInterface {
        return self::ofLimit(
            $iterable,
            $concurrency,
            $onFulfilled,
            function D$reason$idx, PromiseInterface $aggregate): void {
                $aggregate->reject($reason);
            }
        );
    }
}
Home | Imprint | This part of the site doesn't use cookies.