Monitoring download progress

9 views
Skip to first unread message

Hanns Holger Rutz

unread,
Mar 25, 2017, 2:42:54 PM3/25/17
to dispatc...@googlegroups.com
Hi there,

so I managed to run a simple download

Http(req > as.File(fOut))

How can I inject some monitoring of the download progress? E.g. emit a
message for every 5% of download progressed.

thx, ..h.h..

Hanns Holger Rutz

unread,
Mar 25, 2017, 3:17:36 PM3/25/17
to dispatc...@googlegroups.com
here is my hackish solution for now:

https://gist.github.com/Sciss/bea9022d90a4f0ad7556e8fa283ff459

don't know if there is a better / easier way...

best, .h.h.

Brian Maso

unread,
Mar 26, 2017, 5:48:36 AM3/26/17
to dispatc...@googlegroups.com
Looks good. Hooking into the ning API I have found is generally a good way to extend dispatch.

Does it work for you?

Brian Maso

--
You received this message because you are subscribed to the Google Groups "Dispatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dispatch-scala+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Brian Maso
(949) 395-8551
Follow me: @bmaso
br...@blumenfeld-maso.com

Hanns Holger Rutz

unread,
Mar 26, 2017, 7:05:02 AM3/26/17
to dispatc...@googlegroups.com
yes, it works so far...

On 2017-03-26 11:48, Brian Maso wrote:
> Looks good. Hooking into the ning API I have found is generally a good
> way to extend dispatch.
>
> Does it work for you?
>
> Brian Maso
>
> On Sat, Mar 25, 2017 at 10:17 PM, Hanns Holger Rutz <con...@sciss.de
> <mailto:con...@sciss.de>> wrote:
>
> here is my hackish solution for now:
>
> https://gist.github.com/Sciss/bea9022d90a4f0ad7556e8fa283ff459
> <https://gist.github.com/Sciss/bea9022d90a4f0ad7556e8fa283ff459>
>
> don't know if there is a better / easier way...
>
> best, .h.h.
>
>
> On 2017-03-25 19:42, Hanns Holger Rutz wrote:
> > Hi there,
> >
> > so I managed to run a simple download
> >
> > Http(req > as.File(fOut))
> >
> > How can I inject some monitoring of the download progress? E.g. emit a
> > message for every 5% of download progressed.
> >
> > thx, ..h.h..
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Dispatch" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to dispatch-scal...@googlegroups.com
> <mailto:dispatch-scala%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> Best regards,
> Brian Maso
> (949) 395-8551
> Follow me: @bmaso
> br...@blumenfeld-maso.com <mailto:br...@blumenfeld-maso.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Dispatch" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dispatch-scal...@googlegroups.com
> <mailto:dispatch-scal...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages