mini\async() Function

Documentation

Get the configured async runtime

Returns the registered AsyncInterface implementation. Async runtimes (phasync, Swoole, ReactPHP) provide implementations via config file:

_config/mini/Async/AsyncInterface.php

The config file should return an AsyncInterface instance.

Signature

function async(): mini\Async\AsyncInterface

Returns

mini\Async\AsyncInterface

Source

src/Async/functions.php:43-46