IStream.CloseAsync()

DESCRIPTION

Close the write direction of the stream. This will make the other end reach end of file when reading from a stream when all sent data has been received and acknowledged.

A call to close does not affect the read direction of the stream.

DECLARATION

System.Threading.Tasks.Task CloseAsync()

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code STOPPED if the stream was stopped.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code OPERATION_IN_PROGRESS if a stream close or stream write is in progress.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code EOF if eof is reached.

RETURNS

The Task that will complete once the operation is done.