Function

CFReadStreamClose(_:)

Closes a readable stream.

Declaration

func CFReadStreamClose(_ stream: CFReadStream!)

Parameters

stream

The stream to close.

Discussion

This function terminates the flow of bytes and releases any system resources required by the stream. The stream is removed from any run loops in which it was scheduled. Once closed, the stream cannot be reopened.

See Also

Opening and Closing a Read Stream

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software