Opened 23 months ago

Last modified 23 months ago

#6162 defect new

Agent howtos manually call reactor.run/reactor.stop

Reported by: habnabit Owned by:
Priority: normal Milestone:
Component: web Keywords: documentation
Cc: jknight Branch:
Author: Launchpad Bug:

Description

All of the code snippets in the Agent howto would be simplified by use of t.i.task.react instead of calling reactor.run() and reactor.stop() in a deferred callback. This would also show the modern idiom for spinning up a reactor for only one task.

Attachments (1)

unfinished_examples.patch (12.8 KB) - added by lbromo 11 months ago.
The exmaple running on localhost needs testing, the there are a few left embedded in HTML

Download all attachments as: .zip

Change History (3)

comment:1 Changed 23 months ago by DefaultCC Plugin

  • Cc jknight added

comment:2 Changed 23 months ago by exarkun

  • Keywords documentation added
  • Type changed from enhancement to defect

While addressing this issue, please consider that simply switching to react may not actually simplify the examples. Instead, it may make them more complex by introducing a new concept which must be understood before the examples can be understood.

Changed 11 months ago by lbromo

The exmaple running on localhost needs testing, the there are a few left embedded in HTML

Note: See TracTickets for help on using tickets.