phasync\Services\MySQLiPoll
final
class
Documentation
Provides asynchronous running of MySQLi queries within the phasync framework.
To run a MySQLi query asynchronously, use MySQLiPoll::poll($mysqli) from inside a coroutine.
Properties (4)
private
static
array $connections
MySQLi connections
private
static
array $fibers
Fibers associated with the MySQLi connections
private
static
array $errors
Errors or exceptions associated with the connection.
private
static
bool $running
Indicates if the service is currently running.
Methods (2)
Polls the provided MySQLi connection asynchronously.
Launches the service coroutine to handle MySQLi polling.