Hi Sean, Yeah, that would be nice. But do you agree that the only solution is to use a dynamic variable ? Because signalling code has to known whether there is someone catching the notifications, right ? The #signalProgress option in ZnClient was just the first step, the interface. The real, interesting signalling has to happen in ZnUtils class>>#streamFrom:to:size: If you agree that the dynamic variable is the way to go, I can quite easily implement it. Sven On 12 Jul 2012, at 17:58, Sean P. DeNigris wrote:
It would be /really/ nice if Zinc sent notifications of streaming download progress to log listeners and HTTPProgress handlers.
The following method showed nice progress notifications via both routes until the file started to download, which is the bulk of the time spent...
downloadLatestVmMakerImage
| client | client := ZnClient new. client signalProgress: true. client log addListener: self.
[client url: 'https://ci.lille.inria.fr/pharo/job/Cog%20Git%20Tracker/lastSuccessfulBuild/...'; downloadTo: '/Volumes/Fast/Squeak/Cog/vmmaker-image.zip'.] on: HTTPProgress do: [ :ex | Transcript show: ex asString; cr. ex resume ]
-- View this message in context: http://forum.world.st/ENH-Zinc-Streaming-Download-Progress-tp4639686.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.