Watchdog in Go

arjun dhar
Jun 11, 2022

Often in coding, we have circumstances where blocking call such as a Network I/O like TCP connection, which we may need to process asynchronous feedback, while the main thread may decide to move on.

The rest of the talking is done by my code below and open to criticism and improvements.

Illustration #1

You can extend the above concept to also

Illustration #2

--

--

arjun dhar

Software development enthusiast since I was 8 yrs old. Love communicating on anything regarding innovation, community development … ∞