# File lib/eventmachine.rb, line 1043 1043: def self.defer op = nil, callback = nil, &blk 1044: unless @threadpool 1045: require 'thread' 1046: @threadpool = [] 1047: @threadqueue = ::Queue.new 1048: @resultqueue = ::Queue.new 1049: spawn_threadpool 1050: end 1051: 1052: @threadqueue << [op||blk,callback] 1053: end