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'));