lib/lucid_async/mixin.rb
# For convenience, allows calling any method asynchronously with the
# +_async+ suffix. Be very careful to ensure that any method called in
# this manner is thread safe!
#
#     def wait_a_long_time
#       sleep 60
#     end
#
#     wait_a_long_time_async
#
For convenience, allows calling any method asynchronously with the
+_async+ suffix. Be very careful to ensure that any method called in
this manner is thread safe!

def wait_a_long_time
sleep 60
end


For convenience allows calling any method asynchronously with the + _async + suffix . Be very careful to ensure that any method called in this manner is thread safe! def wait_a_long_time sleep 60 end
def method_missing( sym, *args, &block )
      if method = _missing_check( sym )
        async { __send__( method, *args, &block ) }
      else
        super
      end
    end
def method_missing ( sym , * args , & block ) if method = _missing_check ( sym ) async { __send__ ( method , * args , & block ) } else super end end
For convenience, allows calling any method asynchronously with the
+_async+ suffix.
For convenience allows calling any method asynchronously with the + _async + suffix .
sym
args
block