Allows the caller to force a channel to disconnect.
When disconnect is called, the channel (or channels) transformed by this transformer will act as though the remote end had disconnected—the stream will emit a done event, and the sink will ignore future inputs. The inner sink will also be closed to notify the remote end of the disconnection.
If a channel is transformed after the disconnect has been called, it will be disconnected immediately.
- Implemented types
StreamChannel< T>channel) → StreamChannel< T>
Transforms the events sent to and emitted by
) → Future
- Disconnects all channels that have been transformed. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.