Skip to content

Instantly share code, notes, and snippets.

@armanozak
Created May 3, 2021 08:58
Show Gist options
  • Save armanozak/b955bed3c105af310c59bba4fc3e1e79 to your computer and use it in GitHub Desktop.
Save armanozak/b955bed3c105af310c59bba4fc3e1e79 to your computer and use it in GitHub Desktop.
[What's New in RxJS 7] RxJS 7 detect empty error with EmptyError #blog #rxjs
import { EMPTY, EmptyError, lastValueFrom } from "rxjs";
lastValueFrom(EMPTY).catch(err => console.log(err instanceof EmptyError));
// (asynchronously) true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment