Improve performance.

This commit is contained in:
Miao Jiang 2013-02-19 20:54:47 +08:00
parent 02ba0f25d3
commit 1061e177b2
6 changed files with 29 additions and 9 deletions

View file

@ -16,6 +16,7 @@ class CurlBuilder
curl = ->
curl.perform.apply curl, arguments
curl.Curl = Curl
curl.perform = (args...) ->
if @running
throw new Error 'the cURL session is busy, use curl.create to create another cURL Session'