Teek::BackgroundThread::BackgroundWork Class
Inherits: Object
Instance Methods ↑
done?
Returns Boolean
initialize(app, data, worker: nil, &block)
Returns BackgroundWork — a new instance of BackgroundWork
on_message(&block)
Called when worker sends a non-result message back
pause
Convenience methods
paused?
Returns Boolean
send_message(msg)
Send a message to the worker (pause, resume, stop, or custom)