zookeeper_dispatchCalls callbacks for pending operations 説明
void zookeeper_dispatch()
The zookeeper_dispatch function calls the callbacks passed by operations like Zookeeper::get or Zookeeper::exists. 警告
Since version 0.4.0, this function must be called manually to achieve asynchronous operations. If you want that to be done automatically, you also can declare ticks at the beginning of your program. After PHP 7.1, you can ignore this function. This extension uses EG(vm_interrupt) to implement async dispatch. パラメータこの関数にはパラメータはありません。 戻り値値を返しません。 エラー / 例外This method emits PHP warning when callback could not be invoked. 例例1 zookeeper_dispatch example #1 Dispatch callbacks manually.
例2 zookeeper_dispatch example #2 Declare ticks.
参考
|