Some form of batch remove would certainly be useful. If the user
wants to drop all pending requests, that's when the current
one argument alarm comes in very handy. alarm_remove_by_event
will probably be optimal in most cases.
Incidentally, in that same situation I am also removing all
select()ed sockets, and obviously right now it has to be done
one by one. So I thought a similar interface for removing
sockets would also help, although it's really not that important.
Kirill
> Added alarm_remove_all() to clear all alarms, based on feedback from
> Kirill. I'm not sure how useful this one will be.
>
> ...
>
> To remove all alarms for a given event or time. I'm not sure how
> useful these are yet.
>
> $status = $kernel->alarm_remove_by_event($event);
> $status = $kernel->alarm_remove_by_time($time);
>
> To remove all alarms for the current session:
>
> $status = $kernel->alarm_remove_all();