« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 144 for pending (0.002 sec.)
The Event class | PHP 8.3 12368
The Event class (PECL event >= 1.2.6-beta) はじめに Event class represents and event firing on a file descriptor being ready to read from or write to; a file descriptor becoming ready to read from or write to(edge-triggered I/O only); a tim ... ssociated with EventBase . However, event will never fire until it is added (via Event::add() ). An added event remains in pending state until the registered event occurs, thus turning it to active state. To handle events user may register a callback wh ... ich is called when event becomes active. If event is configured persistent , it remains pending. If it is not persistent, it stops being pending when it's callback runs. Event::del() method deletes event, thus making i ... t non-pending. By means of Event::add() method it could be added again. クラス概要 final class Event { /* 定数 */ const int ET = 32 ; co ...
https://man.mtool.work/php/8.3/class.event.html
Event::pending — Detects whether event is pending or scheduled | PHP 8.3 11280
Event::pending (PECL event >= 1.2.6-beta) Event::pending — Detects whether event is pending or scheduled 説明 public function Event::pending ( int $flags ): bool Detects whether event is pending or scheduled パラメータ flags One of, or a co ... of the following constants: Event::READ , Event::WRITE , Event::TIMEOUT , Event::SIGNAL . 戻り値 Returns true if event is pending or scheduled. Otherwise false . 他のマニュアルの関連ページ Linux JM _Exit(2) Linux JM _exit(2) Linux JM exit(2) Docker サー ...
https://man.mtool.work/php/8.3/event.pending.html
The EvWatcher class | PHP 8.3 10334
The EvWatcher class (PECL ev >= 0.2.0) はじめに EvWatcher is a base class for all watchers( EvCheck , EvChild etc.). Since EvWatcher 's constructor is abstract , one can't(and don't need to) create EvWatcher objects directly. クラス概要 abs ... tract class EvWatcher { /* プロパティ */ public $ is_active ; public $ data ; public $ is_pending ; public $ priority ; /* メソッド */ abstract public function __construct () public function clear (): int public function ... is_active Readonly . true if the watcher is active. false otherwise. data User custom data associated with the watcher is_pending Readonly . true if the watcher is pending, i.e. it has outstanding events, but its callback has not yet been invoked. fals ... e otherwise. As long, as a watcher is pending(but not active), one must not change its priority. priority int between Ev::MINPRI and Ev::MAXPRI . Pending watchers with ...
https://man.mtool.work/php/8.3/class.evwatcher.html
EvWatcher::clear — Clear watcher pending status | PHP 8.3 9896
EvWatcher::clear (PECL ev >= 0.2.0) EvWatcher::clear — Clear watcher pending status 説明 public function EvWatcher::clear (): int If the watcher is pending, this method clears its pending status and returns its revents bitset(as if its call ... back was invoked). If the watcher isn't pending it does nothing and returns 0 . Sometimes it can be useful to "poll" a watcher instead of waiting for its callback to be i ... h can be accomplished with this function. パラメータ この関数にはパラメータはありません。 戻り値 In case if the watcher is pending, returns revents bitset as if the watcher callback had been invoked. Otherwise returns 0 . 他のマニュアルの関連ページ Linu ...
https://man.mtool.work/php/8.3/evwatcher.clear.html
About event persistence | PHP 8.3 9388
About event persistence By default, whenever a pending event becomes active (because its file descriptor is ready to read or write, or because its timeout expires), it becomes non-pending right before its callback is executed. Thus, to make ... the event pending again one may call Event::add() on it again from inside the callback function. If the Event::PERSIST flag is set on an eve ... nt, however, the event is persistent . This means that event remains pending even when its callback is activated. Event::del() method can be called to make it non-pending. The timeout on a persistent ...
https://man.mtool.work/php/8.3/event.persistence.html
例 | PHP 8.3 9388
例 例1 基本的な、値を限定する例 <?php enum SortOrder { case Asc ; case Desc ; } function query ( $fields , $filter , SortOrder $order = SortOrder :: Asc ) { /* ... */ } query() 関数は、 $order が SortOrder::Asc または SortOrder::Desc である ... になるので、それ以上のチェックやテストは不要です。 例2 唯一の値を指定する、高度な例 <?php enum UserStatus : string { case Pending = 'P' ; case Active = 'A' ; case Suspended = 'S' ; case CanceledByUser = 'C' ; public function label (): string { return m ... atch ( $this ) { self :: Pending => 'Pending' , self :: Active => 'Active' , self :: Suspended => 'Suspended' , self :: CanceledByUser => 'Canceled by user ... }; } } $status = UserStatus :: Suspended ; var_dump ( $status -> label ()); この例では、ユーザーのステータスは UserStatus::Pending 、 UserStatus::Active 、 UserStatus::Suspended または UserStatus::CanceledByUser のうちのひとつに限られています。 関数はパ ...
https://man.mtool.work/php/8.3/language.enumerations.examples.html
EvLoop::invokePending — Invoke all pending watchers while resetting their pendi... 9317
EvLoop::invokePending (PECL ev >= 0.2.0) EvLoop::invokePending — Invoke all pending watchers while resetting their pending state 説明 public function EvLoop::invokePending (): void Invoke all pending watchers while resetting their pending s ...
https://man.mtool.work/php/8.3/evloop.invokepending.html
win32_set_service_status — サービスの状態を更新する | PHP 8.3 9104
win32_set_service_status (PECL win32service >=0.1.0) win32_set_service_status — サービスの状態を更新する 説明 function win32_set_service_status ( int $status , int $checkpoint = 0 ): void SCM に、実行中のサービスの現在の状態を通知します。 こ ... ラメータ status 以下のステータスコードのうちのひとつ。 WIN32_SERVICE_RUNNING 、 WIN32_SERVICE_STOPPED 、 WIN32_SERVICE_STOP_PENDING 、 WIN32_SERVICE_START_PENDING 、 WIN32_SERVICE_CONTINUE_PENDING 、 WIN32_SERVICE_PAUSE_PENDING 、 WIN32_SERVICE_PAUSED 。 ... るたびに、 この値をインクリメントすべきです。 checkpoint の値は、 status が以下の場合のみ、正しい値です: WIN32_SERVICE_STOP_PENDING , WIN32_SERVICE_START_PENDING , WIN32_SERVICE_CONTINUE_PENDING , WIN32_SERVICE_PAUSE_PENDING . 戻り値 値を返しません。 バー ...
https://man.mtool.work/php/8.3/function.win32-set-service-status.html
Event::add — Makes event pending | PHP 8.3 8809
Event::add (PECL event >= 1.2.6-beta) Event::add — Makes event pending 説明 public function Event::add ( float $timeout = ? ): bool Marks event pending. Non-pending event will never occur, and the event callback will never be called. In con ... junction with Event::del() an event could be re-scheduled by user at any time. If Event::add() is called on an already pending event, libevent will leave it pending and re-schedule it with the given timeout(if specified). If in this case timeout is ... (); ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed 参考 Event::add() Event::del() - Makes event non-pending Event::signal() - Constructs signal event object Event::timer() - Constructs timer event object 他のマニュアルの関連ページ ...
https://man.mtool.work/php/8.3/event.add.html
Event::del — Makes event non-pending | PHP 8.3 7874
Event::del (PECL event >= 1.2.6-beta) Event::del — Makes event non-pending 説明 public function Event::del (): bool Removes an event from the set of monitored events, i.e. makes it non-pending. パラメータ この関数にはパラメータはありません。 ... 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 Event::add() - Makes event pending 他のマニュアルの関連ページ Linux JM exit(2) Linux JM _Exit(2) Linux JM _exit(2) Docker Splunk ロギング・ドライバ Docker サ ...
https://man.mtool.work/php/8.3/event.del.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT