me">Community Examples</a></div><hr><div class="binding"><span id="net/read" class="binding-sym">net/read</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/c28df14/src/core/net.c#L768">source</a></span> <pre class="binding-text">(net/read stream nbytes &amp;opt buf timeout)

Read up to n bytes from a stream, suspending the current fiber until the bytes are available. `n` can also be the keyword `:all` to read into the buffer until