Opened 5 years ago

Last modified 5 years 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:

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 Lasse 4 years 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 5 years ago by DefaultCC Plugin

Cc: jknight added

comment:2 Changed 5 years ago by Jean-Paul Calderone

Keywords: documentation added
Type: enhancementdefect

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 4 years ago by Lasse

Attachment: unfinished_examples.patch added

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

Note: See TracTickets for help on using tickets.