import { Observable } from '../Observable'; import { AsyncSubject } from '../AsyncSubject'; import { multicast } from './multicast'; import { ConnectableObservable } from '../observable/ConnectableObservable'; /** * @return {ConnectableObservable} * @method publishLast * @owner Observable */ export function publishLast(this: Observable): ConnectableObservable { return multicast.call(this, new AsyncSubject()); }