Sobes.tech
Junior — Senior

What output will the program produce?

livecode

Task condition

Determine the order of printing lines when executing the following Swift code:

print("1")
DispatchQueue.main.async {
         print("2")
}
print("3")

Which numbers will appear in the console and in what order?