generalize var name
changed buffer to io.ReadWriter. use hasWritten bool to track if delimiter needed.
use map for set-like behavior (no dups)
test: after many writes, debounces properly