MainTask

Create a main task by using a simple way.

MainTask {
    print(Thread.current)
}
// <_NSMainThread: 0x100e0db10>{number = 1, name = main}

GitHub

View Github