Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
358 bytes
|
Line | |
---|
1 | import { async } from '../scheduler/async';
|
---|
2 | import { map } from './map';
|
---|
3 | export function timestamp(scheduler = async) {
|
---|
4 | return map((value) => new Timestamp(value, scheduler.now()));
|
---|
5 | }
|
---|
6 | export class Timestamp {
|
---|
7 | constructor(value, timestamp) {
|
---|
8 | this.value = value;
|
---|
9 | this.timestamp = timestamp;
|
---|
10 | }
|
---|
11 | }
|
---|
12 | //# sourceMappingURL=timestamp.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.