sionescu / iolib

Common Lisp I/O library
http://common-lisp.net/project/iolib/
MIT License
141 stars 31 forks source link

iolib.multiplex::fd-monitored-p is extremely useful and not exported #72

Closed dlowe-net closed 2 years ago

dlowe-net commented 2 years ago

The usual case here is that I have stored some data I wish to send, and I want to know when I can flush this data, so I add an fd handler on write. Attempting to add a monitor on top of another monitor will error, so I can a) track myself whether or not I've added one, and clear it when the handler is called or b) Use iolib.multiplex::fd-monitored-p. It'd be nice if this were a supported interface.

Alternately, support setting an fd monitor when one already exists.

dlowe-net commented 2 years ago

Thank you!