close()
Closes the stream and releases associated resources.
Declaration
func close() throwsDiscussion
After calling close(), expect that subsequent function calls on the stream to trigger a runtime error.
You must close all opened streams, otherwise deinitialization causes a runtime error.