PECL zookeeper >= 0.4.0
zookeeper_dispatch - Calls callbacks for pending operations
Code Examples

zookeeper_dispatch( ): void

The zookeeper_dispatch function calls the callbacks passwd 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 function has no parameters.

Return Values

No value is returned.

Exceptions and Errors

This method emits PHP warning when callback could not be invoked.

Example of zookeeper_dispatch

Show all examples for zookeeper_dispatch

PHP Version:

Function zookeeper_dispatch:

ZooKeeper Functions

Most used PHP functions