Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

RxJS hook into Subject but don't need a value with Void Subject

node v14.20.1
version: 1.0.0
endpointsharetweet
const rxjs = require('rxjs'); const { Subject } = rxjs const subject = new Subject(); // Shorthand for Subject<void> subject.subscribe({ next: () => console.log('One second has passed') }); setTimeout(() => subject.next(), 1000);
Loading…

no comments

    sign in to comment