JanetDocsPlaygroundI'm feeling luckyGitHub sign in



    (ev/read stream n &opt buffer timeout)

    Read up to n bytes into a buffer asynchronously from a stream. `n`
    can also be the keyword `:all` to read into the buffer until end of
    stream. Optionally provide a buffer to write into as well as a
    timeout in seconds after which to cancel the operation and raise an
    error. Returns the buffer if the read was successful or nil if
    end-of-stream reached. Will raise an error if there are problems with
    the IO operation.

0 examplesSign in to add an example