threadJoin

Waits for the given thread object to finish running

threadJoin() → returns void

threadJoin Argument Reference

threadName string

Thread to join

If no threadName is specified, all running threads will be affected.
You can pass a threadname as string or multiple threads as comma-separated list

timeout numeric
Default: 0

The number of milliseconds for which to suspend thread processing

Fork me on GitHub