Go to the latest version of this document.

# ``twisted`.`internet`.`posixbase`.`_DisconnectSelectableMixin``

class documentation

`class _DisconnectSelectableMixin: (source)`

Known subclasses: `twisted.internet.posixbase.PosixReactorBase`, `twisted.internet.posixbase._ContinuousPolling`

View In Hierarchy

Mixin providing the `_disconnectSelectable` method.

Method | `_disconnectSelectable` | Utility function for disconnecting a selectable.

def _disconnectSelectable(self, selectable, why, isRead, faildict={error.ConnectionDone: failure.Failure(error.ConnectionDone()), error.ConnectionLost: failure.Failure(error.ConnectionLost())}): (source)

Utility function for disconnecting a selectable.

Supports half-close notification, isRead should be boolean indicating whether error resulted from doRead().