(load-urls urls)
Takes a list of URLs and starts loading each one into a js/Image. Returns a chan. Each time a URL finishes (or errors) the result is pushed down the chan. Result: [progress-radix number-of-urls number-of-urls-remaining image-object event-object] Check image.src for the URL of what was loaded. Check event.type for 'load' or 'error' or 'abort'.
Takes a list of URLs and starts loading each one into a js/Image. Returns a chan. Each time a URL finishes (or errors) the result is pushed down the chan. Result: [progress-radix number-of-urls number-of-urls-remaining image-object event-object] Check image.src for the URL of what was loaded. Check event.type for 'load' or 'error' or 'abort'.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close