Example #1
0
	def test_all(self):
		TaskQueue.push('http://www.google.com/')
		TaskQueue.push('http://www.globo.com/')

		task_queue = TaskQueue()

		def p(url):
			pass

		task_queue.bind(p)
		task_queue.run(2)
Example #2
0
def start():
	task_queue = TaskQueue()
	task_queue.bind(process)

	task_queue.run()
Example #3
0
	def test_push(self):
		TaskQueue.push('http://www.google.com/')
		TaskQueue.push('http://www.globo.com/')
		TaskQueue.push('http://www.uol.com.br/')