xp_delete_signal

xp_delete_signal($signal[, $history = false])

Delete a signal from the processor.

Parameters:
  • string|object|int – Signal to delete.
  • boolean – Erase any history of the signal.
Return type:

boolean

Example #1 Basic Usage

<?php
// Install process on signal foo
xp_signal(XP_SIG('foo'), function(){});
// Delete the signal foo
xp_delete_signal(XP_SIG('foo'));
// Emit the signal foo
xp_emit(XP_SIG('foo'));
Read the Docs v: v5.0.1
Versions
latest
v5.0.1
v5.0.0
v4.0.1
v4.0.0
v3.1.1
v3.1.0
v3.0.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.