¡@

Home 

javascript Programming Glossary: pump

Parse large JSON file in Nodejs

http://stackoverflow.com/questions/11874096/parse-large-json-file-in-nodejs

d.toString when data is read stash it in a string buffer pump then process the buffer function pump var pos while pos buf.indexOf.. in a string buffer pump then process the buffer function pump var pos while pos buf.indexOf ' n' 0 keep going while there's.. from the file system it's stashed in a buffer and then pump is called. If there's no newline in the buffer pump simply returns..

Prevent long running javascript from locking up browser

http://stackoverflow.com/questions/672732/prevent-long-running-javascript-from-locking-up-browser

var percent_complete .... return percent_complete function pump var percent_complete doCalculation maybe update a progress meter.. doCalculation maybe update a progress meter here carry on pumping if percent_complete 100 setTimeout pump 50 start the calculation..