Skip to content

Instantly share code, notes, and snippets.

Sámal Rasmussen samal84

Block or report user

Report or block samal84

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:910ef2238eb5ea81fdca8eeba4ae29d1
const subjectCount = 500000;
const subjects = [];
for(let i = 0 ; i < subjectCount; i++) {
subjects[i] = new Subject();
subjects[i].subscribe(
(next) => console.log('next ' + i + ' ' + next),
(error) => console.log('error ' + i + ' ' + error),
() => console.log('close ' + i)
);
}
You can’t perform that action at this time.