Vaya a seleccionar Tiempo de espera
select {
case msg = <- funcWaitingFor():
// do logic
case time.After(time.Second):
// timeout logic
}
Dopey Diplodocus
select {
case msg = <- funcWaitingFor():
// do logic
case time.After(time.Second):
// timeout logic
}