withDialCancel method

Context withDialCancel(
  1. Future<void> cancel
)

Creates a new Context whose dial stops when cancel completes. Transports that support it (UDX) stop sending at once; the Happy Eyeballs dialer uses it to stop the dials that lost the race.

Implementation

Context withDialCancel(Future<void> cancel) {
  return withValue(_dialCancelKey, cancel);
}