Resque\Socket\Server::forget PHP Method

forget() public method

Deletes a function from the call list for a certain action
public forget ( string $event, mixed $callback ) : true
$event string Name of event.
$callback mixed The callback as defined when listen() was called.
return true
    public function forget($event, $callback)
    {
        if (!isset($this->events[$event])) {
            return true;
        }
        $key = array_search($callback, $this->events[$event]);
        if ($key !== false) {
            unset($this->events[$event][$key]);
        }
        return true;
    }