Results of 1 - 10 of about 23 for revents (0.002 sec.)
- EvWatcher::feed — Feeds the given revents set into the event loop | PHP 8.3 13991
- EvWatcher::feed (PECL ev >= 0.2.0) EvWatcher::feed — Feeds the given revents set into the event loop 説明 public function EvWatcher::feed ( int $revents ): void Feeds the given revents set into the event loop, as if the specified event had
... happened for the watcher. パラメータ revents Bit mask of watcher received events . 戻り値 値を返しません。 他のマニュアルの関連ページ Python asyncio-policy Linux JM lo ...
-
https://man.mtool.work/php/8.3/evwatcher.feed.html
- ウォッチャーのコールバック | PHP 8.3 10925
- ウォッチャーのコールバック すべてのウォッチャーは、アクティブ (イベントを待ち受け中) あるいは非アクティブ (一時停止) の状態になります。 コールバックを実行できるのは、アクティブなウォッチャーだけです。 すべてのコールバックは、少なくとも二つの
... 引数を付けて呼ばれます。 watcher (ウォッチャー)、そして revents (受け取ったイベントのビットマスク) です。 ウォッチャーのコールバックは、ウォッチャーのコンストラクタ ( EvWatcher の派生クラ ... に渡します。コールバックは、次のプロトタイプにしたがわなければいけません。 function callback ( object $watcher = NULL , int $revents = NULL ): void watcher EvWatcher を継承したクラスのインスタンス。 revents ウォッチャーが受信したイベント ウォッチャーの型に ... よって、 revents に関連するビットが割り当てられています。 そのため、複数のウォッチャーに対して同じコールバックを使えます。 イベントのマスク ...
-
https://man.mtool.work/php/8.3/ev.watcher-callbacks.html
- The EvWatcher class | PHP 8.3 9987
- 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
... riority ; /* メソッド */ abstract public function __construct () public function clear (): int public function feed ( int $revents ): void public function getLoop (): EvLoop public function invoke ( int $revents ): void public function keepalive ( bool ... watcher pending status EvWatcher::__construct — Abstract constructor of a watcher object EvWatcher::feed — Feeds the given revents set into the event loop EvWatcher::getLoop — Returns the loop responsible for the watcher EvWatcher::invoke — Invokes the ...
-
https://man.mtool.work/php/8.3/class.evwatcher.html
- EvWatcher::invoke — Invokes the watcher callback with the given received events... 9869
- EvWatcher::invoke (PECL ev >= 0.2.0) EvWatcher::invoke — Invokes the watcher callback with the given received events bit mask 説明 public function EvWatcher::invoke ( int $revents ): void Invokes the watcher callback with the given received
... events bit mask. パラメータ revents Bit mask of watcher received events . 戻り値 値を返しません。 他のマニュアルの関連ページ Python selectors Docker docker-co ...
-
https://man.mtool.work/php/8.3/evwatcher.invoke.html
- EvWatcher::clear — Clear watcher pending status | PHP 8.3 9333
- 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
... shed with this function. パラメータ この関数にはパラメータはありません。 戻り値 In case if the watcher is pending, returns revents bitset as if the watcher callback had been invoked. Otherwise returns 0 . 他のマニュアルの関連ページ Linux JM exit(2) Linu ...
-
https://man.mtool.work/php/8.3/evwatcher.clear.html
- EvEmbed クラス | PHP 8.3 8663
- EvEmbed クラス (PECL ev >= 0.2.0) はじめに イベントループを別のイベントループに埋め込むために使います。 クラス概要 class EvEmbed extends EvWatcher { /* プロパティ */ public $ embed ; /* メソッド */ public function __construct ( object $othe
... tion sweep (): void /* 継承したメソッド */ public function EvWatcher::clear (): int public function EvWatcher::feed ( int $revents ): void public function EvWatcher::getLoop (): EvLoop public function EvWatcher::invoke ( int $revents ): void public func ...
-
https://man.mtool.work/php/8.3/class.evembed.html
- 例 | PHP 8.3 8529
- 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n
... conds iteration = 10 END 例2 10.5 秒おきに繰り返すタイマー <?php $w = new EvPeriodic ( 0. , 10.5 , NULL , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例3 再スケジュールコールバックを使う定期タイマー <?php // 10.5 秒おきに繰 ... w ) { return $now + ( 10.5 . - fmod ( $now , 10.5 )); } $w = new EvPeriodic ( 0. , 0. , "reschedule_cb" , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例4 すぐに開始し、10.5 秒おきに繰り返すタイマー <?php // すぐに開始し、10 ... .5 秒おきに繰り返します $w = new EvPeriodic ( fmod ( Ev :: now (), 10.5 ), 10.5 , NULL , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例5 STDIN が読み込み可能になるまで待つ例 <?php // STDIN が読み込み可能にな ...
-
https://man.mtool.work/php/8.3/ev.examples.html
- EvPeriodic::__construct — Constructs EvPeriodic watcher object | PHP 8.3 8529
- EvPeriodic::__construct (PECL ev >= 0.2.0) EvPeriodic::__construct — Constructs EvPeriodic watcher object 説明 public function EvPeriodic::__construct ( float $offset , string $interval , callable $reschedule_cb , callable $callback , mixed
... now ) { return $now + ( 10.5 - fmod ( $now , 10.5 )); } $w = new EvPeriodic ( 0. , 0. , "reschedule_cb" , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例2 Periodic timer. Tick every 10.5 seconds starting at now <?php // Tick ... every 10.5 seconds starting at now $w = new EvPeriodic ( fmod ( Ev :: now (), 10.5 ), 10.5 , NULL , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例3 Hourly watcher <?php $hourly = EvPeriodic ( 0 , 3600 , NULL , functio ...
-
https://man.mtool.work/php/8.3/evperiodic.construct.html
- EvFork クラス | PHP 8.3 8395
- EvFork クラス (PECL ev >= 0.2.0) はじめに Fork ウォッチャーが呼ばれるのは、 fork() を検出したときです (通常は、誰かが EvLoop::fork() を呼んで libev に通知します)。 起動するのは、イベントループが次の処理をブロックする前、 そして EvCheck ウォ
... ority = ? ): object /* 継承したメソッド */ public function EvWatcher::clear (): int public function EvWatcher::feed ( int $revents ): void public function EvWatcher::getLoop (): EvLoop public function EvWatcher::invoke ( int $revents ): void public func ...
-
https://man.mtool.work/php/8.3/class.evfork.html
- The EvIdle class | PHP 8.3 8395
- The EvIdle class (PECL ev >= 0.2.0) はじめに EvIdle watchers trigger events when no other events of the same or higher priority are pending ( EvPrepare , EvCheck and other EvIdle watchers do not count as receiving events ). Thus, as long as
... ority = ? ): object /* 継承したメソッド */ public function EvWatcher::clear (): int public function EvWatcher::feed ( int $revents ): void public function EvWatcher::getLoop (): EvLoop public function EvWatcher::invoke ( int $revents ): void public func ...
-
https://man.mtool.work/php/8.3/class.evidle.html