Event::setPriority

(PECL event >= 1.2.6-beta)

Event::setPrioritySet event priority

说明

public Event::setPriority ( int $priority ) : bool

Set event priority.

参数

priority

The event priority.

返回值

Returns true on success. Otherwise false.

User Contributed Notes

Igor K 15-Jun-2020 03:50
$priority argument should be declared as float, because function expects float value in range between 0 and 1.
Otherwise you get "Unable to set event priority" error.