UNPKG
machty-ember-concurrency-codemods
Version:
latest (0.1.2)
0.1.2
0.1.1
0.1.0
machty-ember-concurrency-codemods
/
transforms
/
rm-ember-concurrency-ts
/
__testfixtures__
/
basic.input.ts
11 lines
(8 loc)
•
247 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ taskFor, perform }
from
'ember-concurrency-ts'
export
default
class
MyObject
{
foo
(
) {
taskFor
(
this
.
someTask
).
perform
();
//
TODO:
figure out safe way to remove perform()
perform
(
this
.
someTask
,
1000
).
then
(
foo
=>
123
) } }