Function Thread.waitToFinish

Joins the Thread and waits for it to finish. Returns what the method called returned.

Variant waitToFinish() nothrow @nogc;