-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Trying to rewrite this code to use OutputSink + BytesOutput.
The idea is to return a sink from the function for the user to pipeTo, when the sink is ended I will collect the bytes and send them to an api which does not support streaming.
But the problem is after handing the sink to outside, there seems no way to know that the sink as ended.
I think I can extend BytesOutput and add a Future that gets triggered when its close() is called. Or it is better to add something to Sink itself?
Metadata
Metadata
Assignees
Labels
No labels