make stdin async

This commit is contained in:
2020-11-01 01:10:34 +01:00
parent f87d822432
commit fd90480cec
4 changed files with 164 additions and 45 deletions
+17
View File
@@ -0,0 +1,17 @@
(
; This demo shows that stdin is nearly non-blocking
(spawn _ ReadAndEcho)
(:a)
(mslp 2500)
(lds @cout "Tick\n")
(j :a)
(proc ReadAndEcho
(:a)
(ld @cout '?')
(ld @cout @cin)
(j :a)
)
)