Teek API Documentation

Inherits: Object

Instance Methods

close

done?

Returns Boolean

initialize(app, data, worker: nil, &block)

Returns BackgroundWork — a new instance of BackgroundWork

on_done(&block)

on_message(&block)

Called when worker sends a non-result message back

on_progress(&block)

pause

Convenience methods

paused?

Returns Boolean

resume

send_message(msg)

Send a message to the worker (pause, resume, stop, or custom)

start

stop

Members: Classes (1)