You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the <code>taskFor()</code> function it provides is no longer necessary
48
-
for interacting with tasks declared using the new syntax. See <ahref="https://github.com/machty/ember-concurrency/releases/tag/2.3.0">v2.3.0</a> and <ahref="https://github.com/machty/ember-concurrency/releases/tag/2.3.2">v2.3.2</a> release notes.
49
-
</li>
50
-
</ul>
34
+
<p>
35
+
Note: while you can import and use the
36
+
<code>perform</code>
37
+
helper, it is actually recommended to use the
38
+
<code>.perform()</code>
39
+
method on each task, which is internally bound to the task (similar to methods
40
+
decorated with
41
+
<code>@action</code>). One of the benefits of using the
42
+
<code>.perform()</code>
43
+
method is that it can be used with modern idiomatic patterns like using the
44
+
<code>fn</code>
45
+
helper to curry additional args when performing the task.
46
+
</p>
51
47
52
48
<p>
53
-
If you would like to see the TypeScript guides for older versions of ember-concurrency
54
-
(or pre-Octane Ember), please
55
-
<ahref="https://v221.ember-concurrency.com/docs/typescript">see the old guides</a>.
49
+
<em>Pardon the lack of syntax! PR's welcome to improve our syntax
0 commit comments