init(inTask:)

Creates a new thread in a given task.

Thread.swift:14
convenience init(inTask task: Task) throws