UNPKG

@lifaon/rx-js-light

Version:

Blazing fast Observables

17 lines (16 loc) 448 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logStateObservable = void 0; function logStateObservable(subscribe, name) { return function (emit) { console.log(("").concat(name, " -> subscribe")); var unsubscribe = subscribe(emit); return function () { console.log(("").concat(name, " -> unsubscribe")); unsubscribe(); }; }; } exports.logStateObservable = logStateObservable;