ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/miq_observable.js

Summary

Maintainability
A
0 mins
Test Coverage
import { Subject } from 'rxjs/Subject';

export const rxSubject = new Subject();

export const sendDataWithRx = (data) => rxSubject.next(data);
export const listenToRx = (callback) => rxSubject.subscribe(callback);