Created
May 3, 2011 14:58
-
-
Save pedrobrasileiro/953479 to your computer and use it in GitHub Desktop.
Processamento
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Multiprocess | |
def self.start num_thread, list | |
unless block_given? | |
Servico::Log.andamento_monitor "Nenhum bloco foi passado" | |
return false | |
end | |
# Pra cada elemento do list passado, quero executar o yield passando esse elemento pra ele. | |
list.each {|i| ???} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment