-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.json
68 lines (68 loc) · 1.93 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
//http://ember-concurrency.com/#/docs/task-concurrency
// ------------------------------
// Imports
// ------------------------------
"Import task from ember-concurrency": {
"prefix": "imp e-c",
"body": [
"import { task } from 'ember-concurrency';"
],
"description": "Imports task from ember-concurrency"
},
"Import timeout from ember-concurrency": {
"prefix": "imp e-c timeout",
"body": [
"import { timeout } from 'ember-concurrency';"
],
"description": "Imports timeout from ember-concurrency"
},
// ------------------------------
// Tasks
// ------------------------------
"Create a new ember-concurrency task": {
"prefix": "e-c task",
"body": [
"${1:taskName}: task(function * () {",
"\t${2:// yield}",
"})${3:,}"
],
"description": "Create a new ember-concurrency task"
},
"Create a new restartable ember-concurrency task": {
"prefix": "e-c task-restartable",
"body": [
"${1:taskName}: task(function * () {",
"\t${2:// yield}",
"}).restartable()${3:,}"
],
"description": "Create a new restartable ember-concurrency task"
},
"Create a new droppable ember-concurrency task": {
"prefix": "e-c task-drop",
"body": [
"${1:taskName}: task(function * () {",
"\t${2:// yield}",
"}).drop()${3:,}"
],
"description": "Create a new droppable ember-concurrency task"
},
"Create a new enqueued ember-concurrency task": {
"prefix": "e-c task-enqueue",
"body": [
"${1:taskName}: task(function * () {",
"\t${2:// yield}",
"}).enqueue()${3:,}"
],
"description": "Create a new enqueued ember-concurrency task"
},
"Create a new keepLatest ember-concurrency task": {
"prefix": "e-c task-keepLatest",
"body": [
"${1:taskName}: task(function * () {",
"\t${2:// yield}",
"}).keepLatest()${3:,}"
],
"description": "Create a new keepLatest ember-concurrency task"
}
}