rt
试了一下,好像是可以的
def show render ... Thread.new do sleep 100 ... end end
def show render ... end after_action :after_act def after_act Thread.new do sleep 100 ... end end
异步任务适合你 activeJob rabbitmq + other language
#2 楼 @flowerwrong 嗯,thank you,查了下是应该用 active job (+ resque/sidekiq) 比较合理。