Choisissez la catégorie, puis la rubrique :

18.24.7 MultiCall Objects

18.24.7 MultiCall Objects

New in version 2.4.

In, an approach is presented to encapsulate multiple calls to a remote server into a single request.

class MultiCall( server)

Create an object used to boxcar method calls. server is the eventual target of the call. Calls can be made to the result object, but they will immediately return None, and only store the call name and parameters in the MultiCall object. Calling the object itself causes all stored calls to be transmitted as a single system.multicall request. The result of this call is a generator; iterating over this generator yields the individual results.

A usage example of this class is

multicall = MultiCall(server_proxy)
add_result, address = multicall()

See About this document... for information on suggesting changes.
Contacter le responsable de la rubrique Python

Partenaire : Hébergement Web