Skip to content

Update 4-async-completion.md #2831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2025
Merged

Update 4-async-completion.md #2831

merged 1 commit into from
Jun 1, 2025

Conversation

IOLOII
Copy link
Contributor

@IOLOII IOLOII commented Feb 18, 2025

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.

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.
@IOLOII
Copy link
Contributor Author

IOLOII commented Feb 18, 2025

const { Observable } = require('rxjs');
function observableTask() {
  return Observable.of(1, 2, 3); // TypeError: Observable.of is not a function
}
exports.default = observableTask;

@yocontra yocontra merged commit 1777a9c into gulpjs:master Jun 1, 2025
phated pushed a commit that referenced this pull request Jun 1, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants