root/trunk/examples/workers/world_worker.rb
| Revision 326, 225 bytes (checked in by gethema..@gmail.com, 6 months ago) |
|---|
| Line | |
|---|---|
| 1 | class WorldWorker < BackgrounDRb::MetaWorker |
| 2 | set_worker_name :world_worker |
| 3 | def create(args = nil) |
| 4 | #logger.info "starting world worker" |
| 5 | end |
| 6 | |
| 7 | def hello_world |
| 8 | a = lambda { "Hello world" } |
| 9 | return a |
| 10 | end |
| 11 | end |
| 12 |
Note: See TracBrowser for help on using the browser.
