fn wait(self: *Self) CollectedResult
[src]
Wait for all the jobs to complete. Safe to call any number of times. If Result
is an error union, this function returns the last error that occurred, if any. Unlike the results
field, the return value of wait
will report any error that occurred; hitting max parallelism will not compromise the result. This function is not thread-safe. It must be called from one thread at a time, however, it need not be the same thread.