Swoole\Server->on('managerstop', fn)

Declaration

<?php
Swoole\Server->on('managerstop', callback $callback)

Parameters

event

The event name

callback

callback function

Return

success

if success, it returns TRUE, otherwise it returns FALSE.

Description

Executue the callback function when Manager Process in the Server is stopping.

The callback function registered for event managerstart is executed in the manager process.

Callback function

<?php
function (Swoole\Server $server) {

}

Example