Skip to content

Commit 738633b

Browse files
authored
Update cancellation.md
1 parent 0ef7076 commit 738633b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced/cancellation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const apiSlow = async () => {
2020
在 pipes 中,串联一个 `takeUntil` 操作符,这个操作符会“监听“取消信号 cancel$.
2121

2222
```javascript
23-
import rxloop, { call } from 'rxloop';
23+
import rxloop from 'rxloop';
2424
// ...
25-
getData(action$, cancel$) {
25+
getData(action$, { call, map }) {
2626
return action$.pipe(
2727
call(async () => {
2828
return await apiSlow();

0 commit comments

Comments
 (0)