Function TaskPipe.connected
Determines The current connection status.
bool connected() @property const;
If connected is false, writing to the connection will trigger an exception. Reading may still succeed as long as there is data left in the input buffer. Use InputStream.empty to determine when to stop reading.