Aborting a download

1 view
Skip to first unread message

Hanns Holger Rutz

unread,
Mar 25, 2017, 3:54:22 PM3/25/17
to dispatc...@googlegroups.com
hi again,

so if I have

Http(req > as.File(fOut))

how would I go from here to implement a possibility to abort a download?

thanks, .h.h.

Hanns Holger Rutz

unread,
Mar 25, 2017, 4:15:53 PM3/25/17
to dispatc...@googlegroups.com
So I peeked into Http.apply and I can just call
Http.client.executeRequest directly and get an abortable future.

Correct?

.hh.

Brian Maso

unread,
Mar 26, 2017, 5:40:05 AM3/26/17
to dispatc...@googlegroups.com
I believe that is basically correct. I find with dispatch that you often need to refer to the source code to do anything "special" -- i.e., undocumented. Experimentation often nets you the best answers.

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
Reply all
Reply to author
Forward
0 new messages