DefinitelyTyped/types/rsocket-flowable/FlowableTimer.d.ts
Adrian Hope-Bailie 8727a4fa0a Add rsocket types (#36076)
* Add rsocket types

* Drop `types` from `tsconfig.json

Use triple-slash references

* Fix linting errors

* Remove private members

* Fix linting errors
2019-06-20 14:05:22 -07:00

14 lines
603 B
TypeScript

import Flowable from './Flowable';
/**
* Returns a Publisher that provides the current time (Date.now()) every `ms`
* milliseconds.
*
* The timer is established on the first call to `request`: on each
* interval a value is published if there are outstanding requests,
* otherwise nothing occurs for that interval. This approach ensures
* that the interval between `onNext` calls is as regular as possible
* and means that overlapping `request` calls (ie calling again before
* the previous values have been vended) behaves consistently.
*/
export function every(ms: number): Flowable<number>;