public static int call (Closure $closure, [array $arguments])
Called asynchronous
<?php
$async = Phalcon\Async::call(function () {
return 'one';
});
public static mixed recv (int $pid, [int $flag])
Gets asynchronous result
<?php
$id = Phalcon\Async::call(function () {
return 'one';
});
$data = Phalcon\Async::recv($id);
public static array recvAll ([unknown $flag])
Gets all asynchronous result
<?php
$id = Phalcon\Async::call(function () {
return 'one';
});
$data = Phalcon\Async::recvAll();
public static int count ()
Gets result count
<?php
Phalcon\Async::count();
public static bool clear ()
Destroy asynchronous
<?php
Phalcon\Async::clear();
public static setFilename (string $filename)
Sets the filename to a System V IPC key
<?php
Phalcon\Async::setFilename('/tmp');
public static string getFilename ()
Gets the filename
<?php
Phalcon\Async::getFilename();