Replies: 1 comment 2 replies
-
Any reason you're passing the resulting Can't you do this? static Pipe<RT, SeqLoan<byte>, object, Unit> UploadToStorage(Uri url) =>
from c in awaiting<SeqLoan<byte>>()
from r in UploadFilePartial(url, c)
from _ in yield(r)
select unit; It also doesn't seem like the static Consumer<RT, SeqLoan<byte>, Unit> UploadToStorage(Uri url) =>
from c in awaiting<SeqLoan<byte>>()
from r in UploadFilePartial(url,c)
select unit; That will close the effect correctly.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I try to upload a file to a TUS server, using this example.
first of all it seems wrong:
Pipe<,, Aff<>,>
.second, is it really working?
how can I get index of the first byte for every chunk?
I have to mention, the
App<Runtime>.MainEffect()
function will be called from somewhere else, and it's not the entry point. So it should work with otherAff
s.How can I accomplish this goal?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions