Stream.openAsync() Overload 1
DESCRIPTION
Open this stream asynchronously.
DECLARATION
public func openAsync(streamPort: UInt32, closure: @escaping AsyncStatusReceiver)
PARAMETERS
streamPort:
- The listening id/port to use for the stream. This is used to distinguish streams in the other end, like a port number.
closure:
- Invoked when the stream is opened or an error occurs, see synchronous open() for possible errors.
Overload 2
DESCRIPTION
Open this stream asynchronously.
DECLARATION
public func openAsync(streamPort: UInt32) async throws
PARAMETERS
streamPort:
- The listening id/port to use for the stream. This is used to distinguish streams in the other end, like a port number.
THROWS ERRORS
STOPPED:
- the stream could not be opened as the handshake was aborted - this includes an invalid port specified and access denied due to insufficient permissions