You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- import { async } from '../scheduler/async';
- import { map } from './map';
- /**
- * @param scheduler
- * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}
- * @method timestamp
- * @owner Observable
- */
- export function timestamp(scheduler = async) {
- return map((value) => new Timestamp(value, scheduler.now()));
- // return (source: Observable<T>) => source.lift(new TimestampOperator(scheduler));
- }
- export class Timestamp {
- constructor(value, timestamp) {
- this.value = value;
- this.timestamp = timestamp;
- }
- }
- ;
- //# sourceMappingURL=timestamp.js.map
|