</span> <pre class="binding-text">(ev/lock)

Create a new lock to coordinate threads.</pre><a href="https://janetdocs.org/ev/lock">Community Examples</a></div><hr><div class="binding"><span id="ev/read" class="binding-sym">ev/read</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/f92f3eb/src/core/ev.c#L3004">source</a></span> <pre class="binding-text">(ev/read stream n &amp;opt buffer timeout)

Read up to n bytes into a buffer asy