cancel method - ConnectionTask class - dart:io library (original) (raw)

description

void cancel()

Cancels the connection attempt.

This also causes the socket Future to complete with aSocketException error.

Implementation

void cancel() {
  _onCancel();
}