Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./nikic/../dompdf/../alexandr-mironov/../monolog/../unicodeveloper/../dragonmantank/../nunomaduro/../mockery/../phar-io/../mockery/../laravel/prompts/../octane/src
الملفات الموجودة في هذا الـ Path:
.
..
ApplicationFactory.php
ApplicationGateway.php
Cache
Commands
Concerns
Contracts
CurrentApplication.php
DispatchesEvents.php
Events
Exceptions
Exec.php
Facades
Listeners
MarshalsPsr7RequestsAndResponses.php
MimeType.php
Octane.php
OctaneResponse.php
OctaneServiceProvider.php
PosixExtension.php
RequestContext.php
RoadRunner
SequentialCoroutineDispatcher.php
SequentialTaskDispatcher.php
Stream.php
Swoole
SymfonyProcessFactory.php
Tables
Testing
Worker.php
WorkerExceptionInspector.php

مشاهدة ملف: SequentialCoroutineDispatcher.php

<?php

namespace Laravel\Octane;

use Laravel\Octane\Contracts\DispatchesCoroutines;

class SequentialCoroutineDispatcher implements DispatchesCoroutines
{
    /**
     * Concurrently resolve the given callbacks via coroutines, returning the results.
     */
    public function resolve(array $coroutines, int $waitSeconds = -1): array
    {
        return collect($coroutines)->mapWithKeys(
            fn ($coroutine, $key) => [$key => $coroutine()]
        )->all();
    }
}