src/main/java/reactor/ipc/netty/NettyOutbound.java
/**
	 * Send content from given {@link Path} using
	 * {@link java.nio.channels.FileChannel#transferTo(long, long, WritableByteChannel)}
	 * support. If the system supports it and the path resolves to a local file
	 * system {@link File} then transfer will use zero-byte copy
	 * to the peer.
	 * <p>It will
	 * listen for any error on
	 * write and close
	 * on terminal signal (complete|error). If more than one publisher is attached
	 * (multiple calls to send()) completion occurs after all publishers complete.
	 * <p>
	 * Note: this will emit {@link io.netty.channel.FileRegion} in the outbound
	 * {@link io.netty.channel.ChannelPipeline}
	 *
	 * @param file the file Path
	 *
	 * @return A Publisher to signal successful sequence write (e.g. after "flush") or any
	 * error during write
	 */
Send content from given  Path using
java.nio.channels.FileChannel#transferTo(long, long, WritableByteChannel)
support. If the system supports it and the path resolves to a local file
system  File then transfer will use zero-byte copy
to the peer.
It will
listen for any error on
write and close
on terminal signal (complete|error). If more than one publisher is attached
(multiple calls to send()) completion occurs after all publishers complete.

@param file the file Path

@return A Publisher to signal successful sequence write  or any
error during write
Send content from given Path using java . nio . channels . FileChannel#transferTo ( long long WritableByteChannel ) support . If the system supports it and the path resolves to a local file system File then transfer will use zero - byte copy to the peer . It will listen for any error on write and close on terminal signal ( complete|error ) . If more than one publisher is attached ( multiple calls to send () ) completion occurs after all publishers complete . @param file the file Path @return A Publisher to signal successful sequence write or any error during write
default NettyOutbound sendFile(Path file) {
		try {
			return sendFile(file, 0L, Files.size(file));
		}
		catch (IOException e) {
			return then(Mono.error(e));
		}
	}
default NettyOutbound sendFile ( Path file ) { try { return sendFile ( file , 0L , Files . size ( file ) ) ; } catch ( IOException e ) { return then ( Mono . error ( e ) ) ; } }
Send content from given {@link Path} using
 {@link java.nio.channels.FileChannel#transferTo(long, long, WritableByteChannel)}
 support.
Send content from given { @link Path } using { @link java . nio . channels . FileChannel#transferTo ( long long WritableByteChannel ) } support .