chickadee » channel » siphon-input-port

siphon-input-port port read #!optional channelprocedure

Siphons each message read from port into channel. Returns two values:

  1. a procedure which can be called to read the next message from port and enqueue it to channel; it will return #t on success and #f when port is at its end.
  2. channel

The latter is useful because by default channel will be a new channel as returned by make-channel.