public static readonly property activeCount as UInt
Returns the number of logically active threads.
The main thread is included. Workers are counted from successful startup until their native execution has fully completed.
print(Thread.activeCount)