Skip to content

Instantly share code, notes, and snippets.

@gaeng2y
Created November 27, 2022 09:42
Show Gist options
  • Save gaeng2y/61570b1b98558864fb2d89bc0a7eb2a2 to your computer and use it in GitHub Desktop.
Save gaeng2y/61570b1b98558864fb2d89bc0a7eb2a2 to your computer and use it in GitHub Desktop.
Serial Example
print("start")
DispatchQueue.main.async {
for _ in 0...4 {
print("async")
}
}
for _ in 0...4 {
print("sync")
}
print("end")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment