Function createEndCallbackInputStream
Creates a stream that fires a callback once the end of the underlying input stream is reached.
EndCallbackInputStream createEndCallbackInputStream(InputStream)
(
InputStream input,
@safe void delegate() callback
)
if (isInputStream!InputStream);
Parameters
Name | Description |
---|---|
input | Source stream to read from |
callback | The callback that is invoked one the source stream has been drained |