Method: SemanticLogger::Appender::Async#thread

Defined in:
lib/semantic_logger/appender/async.rb

#threadObject

Returns [Thread] the worker thread.

Starts the worker thread if not running.



73
74
75
76
# File 'lib/semantic_logger/appender/async.rb', line 73

def thread
  return @thread if @thread&.alive?
  @thread = Thread.new { process }
end