-
Short summary: Why this thing does not resolve at all? const obs = new Subject().asObservable().pipe(startWith('startWith'));
lastValueFrom(obs).then(console.log); |
Beta Was this translation helpful? Give feedback.
Answered by
demensky
Aug 31, 2023
Replies: 1 comment
-
In your case "complete" never happens. Here is an example where const sub = new Subject();
const obs = sub.asObservable().pipe(startWith('startWith'));
lastValueFrom(obs).then(console.log);
sub.complete(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vajahath
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lastValueFrom
:In your case "complete" never happens.
Here is an example where
console.log
will be executed: