Handbook
Glossary
wait-for-fd ( handle event -- )
Vocabulary
io
.
files
Inputs
handle
an
object
event
an
object
Outputs
None
Definition
USING:
io.backend
;
IN:
io.files
HOOK:
wait-for-fd
io-backend
( handle event -- )
Methods
USING:
combinators
io.backend.unix
io.backend.unix.multiplexers
io.files
kernel
namespaces
system
threads
;
M:
unix
wait-for-fd
dup
+retry+
eq?
[
2drop
]
[
[
[
self
]
dip
handle-fd
mx
get-global
]
dip
{
{
+input+
[
add-input-callback
]
}
{
+output+
[
add-output-callback
]
}
}
case
"I/O"
suspend
[
io-timeout
]
when
]
if
;