danog\MadelineProto\Shutdown
Author: Daniil Gentili daniil@daniil.it
Class that controls script shutdown.
Method list:
init()
addCallback(callable $callback, null|string $id): int|\string The callback ID
removeCallback(null|string|int $id): \bool true if the callback was removed correctly, false otherwise
Methods:
init()
Register shutdown function.
addCallback(callable $callback, null|string $id): int|\string The callback ID
Add a callback for script shutdown.
Parameters:
$callback
:callable
The callback to set$id
:null|string
The optional callback ID
Return value: The callback ID
removeCallback(null|string|int $id): \bool true if the callback was removed correctly, false otherwise
Remove a callback from the script shutdown callable list.
Parameters:
$id
:null|string|int
The optional callback ID
Return value: true if the callback was removed correctly, false otherwise
Generated by danog/phpdoc