Function wait

Source
pub extern "C" fn wait()
Expand description

等待所有通过spawn创建的线程完成

§说明

该函数会阻塞当前线程,直到所有通过spawn函数创建的线程都执行完成 调用后会清空线程句柄列表