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