项目原始demo,不改动
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Este repositorio está archivado. Puede ver los archivos y clonarlo, pero no puede subir cambios o reportar incidencias ni pedir Pull Requests.
 
 
 
 

26 líneas
916 B

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