Skip to content

Commit 5412605

Browse files
IOLOIIphated
authored andcommitted
chore(docs): Update async completion document for newer RxJS (#2831)
Starting with RxJS 6.x, the Observable.of method has been removed, and it's recommended to directly import the of function from 'rxjs' instead.
1 parent 2fa4981 commit 5412605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started/4-async-completion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ exports.default = childProcessTask;
6868
### Returning an observable
6969

7070
```js
71-
const { Observable } = require('rxjs');
71+
const { of } = require('rxjs');
7272

7373
function observableTask() {
74-
return Observable.of(1, 2, 3);
74+
return of(1, 2, 3);
7575
}
7676

7777
exports.default = observableTask;

0 commit comments

Comments
 (0)