joinall(greenlets, timeout=None, raise_error=False, count=None) Wait
for the greenlets to finish.
Parameters:
greenlets – A sequence (supporting len()) of greenlets to wait for.
timeout (float) – If given, the maximum number of seconds to wait.
Returns: A sequence of the greenlets that finished before the timeout (if any) expired.
joinall
记录如下:正如您所看到的,在功能上存在差异。最大的一点是}只适用于绿色蔬菜。所以
wait
适用于许多事物,而{joinall
的功能对于greenlets来说是taylored的。在相关问题 更多 >
编程相关推荐