Allez Sélectionner le délai d'expiration
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
}