1 | func TestSelectTimeLimiter(t *testing.T) { |
知识点:time.After 方法返回一个 chan
1 | // After waits for the duration to elapse and then sends the current time |
1 | func TestSelectTimeLimiter(t *testing.T) { |
知识点:time.After 方法返回一个 chan
1 | // After waits for the duration to elapse and then sends the current time |