Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 428 Bytes

File metadata and controls

13 lines (11 loc) · 428 Bytes

The rxjs-execute-before-operator executes a callback before other operators. You can use it like follows:

import { of } from "rxjs";
import { executeBefore } from "rxjs-execute-before-operator";
import { timeout } from "rxjs/operators";

of(true).pipe(timeout(5000), executeBefore(() => {
	console.log("I will be executed first");
})).subscribe(() => {
    console.log("I will be executed afterwards");
});