fan-in câu
Câu ví dụ
Điện thoại
- Fan-in and fan-out
Tải và Fan-Out - Fan-in and Fan-out
Tải và Fan-Out - fan-in and fan-out
Tải và Fan-Out - In this example we are using select to create a fan-in goroutine that combines two input channels of string, input1 and input2, into one unbuffered output channel, c.
Trong ví dụ này, chúng ta dùng select để tạo một fanIn goroutine, kết hợp 2 kênh channel nhập chuỗi, input1 và input2, đổ vào một kênh channel xuất không bộ đệm, c.