lib/pigeon/task.rb
# This allows a block to be executed in the main event thread where it is
# strictly required. Any exceptions generated by the block will be captured
# and will cause the task to transition to the failed state.
This allows a block to be executed in the main event thread where it is
strictly required. Any exceptions generated by the block will be captured
and will cause the task to transition to the failed state.
This allows a block to be executed in the main event thread where it is strictly required . Any exceptions generated by the block will be captured and will cause the task to transition to the failed state .
def execute_in_main_thread
    @engine.execute_in_main_thread do
      begin
        yield
      rescue Object => e
        exception_received(e)
      end
    end
  end
def execute_in_main_thread @engine . execute_in_main_thread do begin yield rescue Object => e exception_received ( e ) end end end
This allows a block to be executed in the main event thread where it is
strictly required.
This allows a block to be executed in the main event thread where it is strictly required .