php8.5
Home/ Manual/ yaz / functions/ yaz_wait

yaz_wait

PHP function Edit on GitHub ✎

(PHP 4 >= 4.0.1, PECL yaz >= 0.9.0)

Wait for Z39.50 requests to complete

Description

yaz_wait([array $options]): mixed

This function carries out networked (blocked) activity for outstanding requests which have been prepared by the functions yaz_connect(), yaz_search(), yaz_present(), yaz_scan() and yaz_itemorder().

yaz_wait() returns when all servers have either completed all requests or aborted (in case of errors).

Parameters

options

An associative array of options:

timeout

Sets timeout in seconds. If a server has not responded within the timeout it is considered dead and yaz_wait() returns. The default value for timeout is 15 seconds.

event

A boolean.

Return Values

Success In event mode, returns resource Falseforfailure.

Source: reference/yaz/functions/yaz-wait.xml · from the official PHP manual (php/doc-en)