OptionalextraOptionallastOptionalsizeOptionaltypeResolve the underlying stream for one-time consumption. Implementations must enforce single-use semantics.
Return the underlying stream (single-use). Should throw if already consumed.
Persist the stream to a temporary file on disk and return its path and number of bytes written.
Optionaldir: string
Universal interface exposed to tasks for streamed files.