Sha256: f5bb31419150fb57ac48f66bfdbbb4cfecd113198f948f5a51f87fbd57be2cdd
Contents?: true
Size: 390 Bytes
Versions: 12
Compression:
Stored size: 390 Bytes
Contents
class ExampleMonitoredWorker # After including worker monitoring you can invoke record_progress() method. include BackgroundFu::WorkerMonitoring def long_and_monitored my_progress = 0 record_progress(my_progress) while(my_progress < 100) my_progress += 1 record_progress(my_progress) sleep 1 end record_progress(100) end end
Version data entries
12 entries across 12 versions & 2 rubygems