Front end of the Slack clone application.

windowTime.js 1.0KB

12345678910111213141516171819202122232425262728
  1. /** PURE_IMPORTS_START .._scheduler_async,.._util_isNumeric,.._util_isScheduler,.._operators_windowTime PURE_IMPORTS_END */
  2. import { async } from '../scheduler/async';
  3. import { isNumeric } from '../util/isNumeric';
  4. import { isScheduler } from '../util/isScheduler';
  5. import { windowTime as higherOrder } from '../operators/windowTime';
  6. export function windowTime(windowTimeSpan) {
  7. var scheduler = async;
  8. var windowCreationInterval = null;
  9. var maxWindowSize = Number.POSITIVE_INFINITY;
  10. if (isScheduler(arguments[3])) {
  11. scheduler = arguments[3];
  12. }
  13. if (isScheduler(arguments[2])) {
  14. scheduler = arguments[2];
  15. }
  16. else if (isNumeric(arguments[2])) {
  17. maxWindowSize = arguments[2];
  18. }
  19. if (isScheduler(arguments[1])) {
  20. scheduler = arguments[1];
  21. }
  22. else if (isNumeric(arguments[1])) {
  23. windowCreationInterval = arguments[1];
  24. }
  25. return higherOrder(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler)(this);
  26. }
  27. //# sourceMappingURL=windowTime.js.map