mirror of
https://github.com/janet-lang/janet
synced 2025-10-16 00:07:40 +00:00
Add os/pipe and os/open.
ev/pipe -> os/pipe, and os/open is a wrapper around the open system call.
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
# Create pipe
|
||||
|
||||
(var pipe-counter 0)
|
||||
(def [reader writer] (ev/pipe))
|
||||
(def [reader writer] (os/pipe))
|
||||
(ev/spawn
|
||||
(while (ev/read reader 3)
|
||||
(++ pipe-counter))
|
||||
|
Reference in New Issue
Block a user