mirror of
https://github.com/janet-lang/janet
synced 2025-11-06 10:33:03 +00:00
Add ev/pipe and move stream code into ev.c
Also adds a lot to the C API and changes things up.
This commit is contained in:
@@ -2748,6 +2748,9 @@
|
||||
(ev/call (fn [] (net/accept-loop s handler))))
|
||||
s))
|
||||
|
||||
(guarddef ev/close
|
||||
(defn net/close "Alias for ev/close." [stream] (ev/close stream)))
|
||||
|
||||
(undef guarddef)
|
||||
|
||||
###
|
||||
@@ -2757,7 +2760,7 @@
|
||||
###
|
||||
|
||||
(defn- no-side-effects
|
||||
"Check if form may have side effects. If returns true, then the src
|
||||
"Check if form may have side effects. If rturns true, then the src
|
||||
must not have side effects, such as calling a C function."
|
||||
[src]
|
||||
(cond
|
||||
|
||||
Reference in New Issue
Block a user