flushAndClose
To avoid the risk of concurrent write operations, we cancel the nested job before performing flushAndClose on the ByteWriteChannel.
To avoid the risk of concurrent write operations, we cancel the nested job before performing flushAndClose on the ByteWriteChannel.