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.
12 lines
358 B
12 lines
358 B
4 years ago
|
import { async } from '../scheduler/async';
|
||
|
import { map } from './map';
|
||
|
export function timestamp(scheduler = async) {
|
||
|
return map((value) => new Timestamp(value, scheduler.now()));
|
||
|
}
|
||
|
export class Timestamp {
|
||
|
constructor(value, timestamp) {
|
||
|
this.value = value;
|
||
|
this.timestamp = timestamp;
|
||
|
}
|
||
|
}
|
||
|
//# sourceMappingURL=timestamp.js.map
|