(index ("make-reader" 0) ("reader?" 274) ("reader-fd" 406) ("reader-ready?" 530) ("thread-wait-for-reader!" 678) ("reader-read!" 949) ("reader-has-token?" 1194) ("reader-get-token!" 1382) ("sep-scheme-expr" 1655) ("sep-line" 2149) ("make-writer" 2508) ("writer?" 2705) ("writer-fd" 2830) ("writer-ready?" 2958) ("thread-wait-for-writer!" 3149) ("writer-enqueue!" 3426) ("writer-write!" 3688) ("writer-finished?" 3928))
(def (sig (procedure "(make-reader fd sep-proc)" (id make-reader))) (p "Sets the file descriptor " (i "fd") " to non-blocking mode. Returns a reader which is used to read input from the file descriptor " (i "fd") ". This reader separates tokens using " (i "sep-proc") "."))
(def (sig (procedure " (reader? x) " (id reader?))) (p "Returns true if " (i "x") " is a reader object, otherwise returns false."))
(def (sig (procedure " (reader-fd x) " (id reader-fd))) (p "Returns the file descriptor belonging to reader " (i "x") "."))
(def (sig (procedure " (reader-ready? x) " (id reader-ready?))) (p "Returns true if there is input waiting to be read by the reader " (i "x") "."))
(def (sig (procedure " (thread-wait-for-reader! x) " (id thread-wait-for-reader!))) (p "Suspends the current thread until the file descriptor belonging to reader " (i "x") " is ready to be read. Equivalent to:") (highlight scheme "(thread-wait-for-i/o! (reader-fd x))"))
(def (sig (procedure " (reader-read! x) " (id reader-read!))) (p "Reads input from the file descriptor belonging to reader " (i "x") ". Performs separation on any input read. Throws an exception if there is no input to be read by the reader."))
(def (sig (procedure " (reader-has-token? x) " (id reader-has-token?))) (p "Returns true if the reader " (i "x") " has a complete token from it's input stream. Otherwise returns false."))
(def (sig (procedure " (reader-get-token! x) " (id reader-get-token!))) (p "If reader " (i "x") " found a token using it's separator procedure during the last call to (reader-read! x), then that token will be returned as a string. Otherwise an empty string is returned."))
(def (sig (procedure " (sep-scheme-expr str) " (id sep-scheme-expr))) (p "A separator procedure for scheme expressions (without chicken extensions). Returns two values: The first value returned is the first complete scheme expression found in " (i "str") " or an empty string if no scheme expressions were found. The second value returned is the remainder of the " (i "str") " after the first complete scheme expression, or an empty string if there is no content after the first expression."))
(def (sig (procedure " (sep-line str) " (id sep-line))) (p "A separator procedure for lines. Returns two values: The first value returned is the first line found in " (i "str") ", including the newline character. The second value returned is the remainder of " (i "str") " after the first line, or an empty string if " (i "str") " only contained one line."))
(def (sig (procedure " (make-writer fd) " (id make-writer))) (p "Sets the file descriptor " (i "fd") " into non-blocking mode and returns a writer which is used to read input from " (i "fd") "."))
(def (sig (procedure " (writer? x) " (id writer?))) (p "Returns true if " (i "x") " is a writer. Otherwise returns false."))
(def (sig (procedure " (writer-fd x) " (id writer-fd))) (p "Returns the file descriptor belonging to the writer " (i "x") "."))
(def (sig (procedure " (writer-ready? x) " (id writer-ready?))) (p "Returns true if the file descriptor belonging to writer " (i "x") " is ready to be written to. Otherwise returns false."))
(def (sig (procedure " (thread-wait-for-writer! x) " (id thread-wait-for-writer!))) (p "Suspends the current thread until the file descriptor belonging to writer " (i "x") " is ready to be written to. Equivalent to:") (highlight scheme "(thread-wait-for-i/o! (writer-fd x))"))
(def (sig (procedure " (writer-enqueue! x str) " (id writer-enqueue!))) (p "Places string " (i "str") " in writer " (i "x") "'s buffer. Portions of " (i "str") " will be written to " (i "x") "'s file descriptor on subsequent calls to " (i "writer-write!") "."))
(def (sig (procedure " (writer-write! x) " (id writer-write!))) (p "Writes characters from writer " (i "x") "'s buffer to " (i "x") "'s file descriptor. Throws an exception if " (i "x") "'s file descriptor is not ready to be written to."))
(def (sig (procedure " (writer-finished? x) " (id writer-finished?))) (p "Returns true if the writer " (i "x") " has nothing queued to be written to it's file descriptor. Otherwise returns false."))
