wait with return when