search for: progress_worker

Displaying 1 result from an estimated 1 matches for "progress_worker".

2007 Nov 14
7
BackgrounDRb version 1.0RC1 available now
...ome people, asked, if we can do "progress bar" or "file_upload" with new code base. The answer is yes, but again, changes would be required. "progress bar" example would look like this: class ProgressWorker < BackgrounDRb::MetaWorker set_worker_name :progress_worker def create @counter = 0 add_peridic_timer(2) { increment_counter } end def increment_counter @counter += 1 register_status(@counter) end end And using MiddleMan proxy, you can keep queering status of your progress bar:...