代码如下:
控制台输出如下:
=== RUN TestCondDemo
Signal
Signal
Broadcast
--- PASS: TestCondDemo (4.02s)
PASS
问题:
程序运行后:for循环中被唤醒的协程都未在控制台打印!
代码如下:
控制台输出如下:
=== RUN TestCondDemo
Signal
Signal
Broadcast
--- PASS: TestCondDemo (4.02s)
PASS
问题:
程序运行后:for循环中被唤醒的协程都未在控制台打印!