Skip to content

Commit be26a58

Browse files
committed
Improved timeout snippet.
1 parent d723048 commit be26a58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

snippets/snippets.cson

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
"""
4949
'setTimeOut function':
5050
'prefix': 'seto'
51-
'body': 'setTimeOut(($2) => { $3 }, ${1:timeOut});'
51+
'body': """setTimeout(($2) => {
52+
$3
53+
}, ${1:timeOut});
54+
"""
5255
'new Promise':
5356
'prefix': 'npro'
5457
'body': 'new Promise((${1:resolve}, ${2:reject}) => )'

0 commit comments

Comments
 (0)