end

Bun

Symbol

NetworkSink.end

end(error?: Error): number | Promise<number>

Finish the upload. This also flushes the internal buffer.

@param error

Optional error to associate with the end operation

@returns

Number of bytes written or a Promise resolving to the number of bytes

Referenced types

interface Error