Tasks #525

Python client example is broken for 0.4

Added by J. Wienke over 12 years ago. Updated over 12 years ago.

Status:ResolvedStart date:08/29/2011
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:Python
Target version:0.4

Description

there is no timeout argument.

Associated revisions

Revision 71ce2bdc
Added by J. Moringen over 12 years ago

Fixed missing timeout parameter in DataFuture in rsb/patterns/future.py
fixes #525
  • rsb/patterns/future.py: in Future.get, only raise the TimeoutError,
    if the result did arrive in the meantime; added timeout keyword
    parameter to DataFutre.get
  • examples/client.py: demonstrate synchronous and asynchronous method
    calls separately; use a timeout in the asynchronous case; changed
    name of called method to "echo" which is more appropriate
  • examples/server.py: use different method names in differently
    constructed servers; added some comments explaining the different
    kinds of server construction methods

History

#1 Updated by J. Moringen over 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2460.

Also available in: Atom PDF