Sha256: 0bbfcdcaccba7e96bbb36a4eceb53ea038d6540fde1367a08d958e6765718b84
Contents?: true
Size: 565 Bytes
Versions: 8
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module SplitIoClient module Helpers class ThreadHelper def self.stop(thread_sym, config) thread = config.threads[thread_sym] unless thread.nil? Thread.kill thread config.logger.debug("#{thread_sym} killed.") if config.debug_enabled end rescue StandardError => e config.logger.error(e.inspect) end def self.alive?(thread_sym, config) thread = config.threads[thread_sym] thread.nil? ? false : thread.alive? end end end end
Version data entries
8 entries across 8 versions & 1 rubygems