stream(_:handle:)
The delegate receives this message when a given event has occurred on a given stream.
Declaration
optional func stream(_ aStream: Stream, handle eventCode: Stream.Event)Parameters
- aStream:
The stream on which
streamEventoccurred. - eventCode:
The stream event that occurred.
Mentioned in
Discussion
The delegate receives this message only if theStream is scheduled on a run loop. The message is sent on the stream object’s thread. The delegate should examine streamEvent to determine the appropriate action it should take.
See Also
Related Documentation
- Stream Programming Guide