init
This commit is contained in:
7
snippets/swift-mode/dispatchafter
Normal file
7
snippets/swift-mode/dispatchafter
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: dispatchAfter
|
||||
# key: dispatchAfter
|
||||
# --
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds($1)) {
|
||||
$0
|
||||
}
|
||||
Reference in New Issue
Block a user