Module: LightIO::Library::Thread::FallbackHelper

Includes:
ClassMethods
Included in:
LightIO::Library::Thread
Defined in:
lib/lightio/library/thread.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ClassMethods

#fallback_method, #fallback_thread_class_methods

Class Method Details

.included(base) ⇒ Object



72
73
74
# File 'lib/lightio/library/thread.rb', line 72

def self.included(base)
  base.send :extend, ClassMethods
end

Instance Method Details

#fallback_main_thread_methods(*methods) ⇒ Object



65
66
67
68
69
70
# File 'lib/lightio/library/thread.rb', line 65

def fallback_main_thread_methods(*methods)
  methods.each {|m| fallback_method(main, m, "This method is fallback to native main thread,"\
                                             " it may cause unexpected behaviour,"\
                                             " open issues on https://github.com/socketry/lightio/issues"\
                                             " if this behaviour not approach you purpose")}
end