Teek API Documentation

Context passed to the work block

Inherits: Object

Instance Methods

check_message

Non-blocking check for messages from main thread. Returns the message or nil if none.

check_pause

Check pause state, blocking if paused

initialize(output_queue, message_queue)

Returns TaskContext — a new instance of TaskContext

send_message(msg)

Send a message back to main thread (not a result)

wait_message

Blocking wait for next message

yield(value)

Yield a result to the main thread. Calls Thread.pass to give main thread a chance to process events.