DialURLContext extends DialURL's functionality by accepting a context.Context for cancelling the dial operation. It is implemented backwards compatible, so we don't have to update all transports to support this.
It was inspired by the net.DialContext from the standard library, which supports the same use cases.
I'm also working on incorporating this into Pat, which will enable dial cancellation for stateless transports like telnet and ax25.
DialURLContext extends DialURL's functionality by accepting a context.Context for cancelling the dial operation. It is implemented backwards compatible, so we don't have to update all transports to support this.
It was inspired by the net.DialContext from the standard library, which supports the same use cases.
I'm also working on incorporating this into Pat, which will enable dial cancellation for stateless transports like
telnet
andax25
.