Skip to content

Commit

Permalink
Renamed slot delay -> window of rudel-collecting-transport-filter
Browse files Browse the repository at this point in the history
* rudel-transport-util.el (rudel-collecting-transport-filter::window):
  renamed slot delay -> window; changed type to non-negative number
  (rudel-collecting-transport-filter::rudel-maybe-start-timer): use
  slot window; avoid lexical-let
  • Loading branch information
scymtym committed May 26, 2010
1 parent fe5693b commit fa53e79
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions rudel-transport-util.el
Expand Up @@ -390,9 +390,9 @@ transmission.")
:documentation
"A timer used to trigger the transmission of
queued data.")
(delay :initarg :delay
:type number
:initform 1
(window :initarg :window
:type (number 0)
:initform 1.0
:documentation
"The maximum time to wait before transmitting
queued data even if it is smaller than a complete chunk."))
Expand Down Expand Up @@ -450,14 +450,14 @@ transmission.")
"Start timer that runs `rudel-flush' when it expires."
;; If necessary, create a timer that runs `rudel-flush' when it
;; expires.
(with-slots (timer delay) this
(with-slots (timer window) this
(unless timer
(lexical-let ((this1 this))
(setq timer (run-at-time
delay nil ;; no repeat
(lambda ()
(rudel-flush this1)
(oset this1 :timer nil)))))))
(setq timer (run-at-time
window nil ;; no repeat
(lambda (this)
(rudel-flush this)
(oset this :timer nil))
this))))
)

(defmethod rudel-maybe-cancel-timer
Expand Down

0 comments on commit fa53e79

Please sign in to comment.