Handbook
Glossary
cancel-operation ( obj -- )
I/O timeout protocol
Prev:
set-timeout ( dt/f obj -- )
Next:
with-timeout ( obj quot -- )
Vocabulary
io
.
timeouts
Inputs
obj
an
object
Outputs
None
Generic word contract
Handles a timeout, usually by waking up all threads waiting on the object.
Definition
IN:
io.timeouts
GENERIC:
cancel-operation
( obj -- )
Methods
USING:
accessors
destructors
io.backend.unix
io.backend.unix.multiplexers
io.timeouts
kernel
namespaces
sequences
threads
;
M:
fd
cancel-operation
[
fd>>
mx
get-global
[
remove-input-callbacks
[
t
swap
resume-with
]
each
]
[
remove-output-callbacks
[
t
swap
resume-with
]
each
]
2bi
]
unless-disposed
;
USING:
accessors
io.ports
io.timeouts
;
M:
port
cancel-operation
handle>>
cancel-operation
;
USING:
io.launcher
io.timeouts
;
M:
process
cancel-operation
kill-process
;
USING:
accessors
io.sockets.secure.openssl
io.timeouts
;
M:
ssl-handle
cancel-operation
file>>
cancel-operation
;
USING:
accessors
io.backend.unix
io.timeouts
kernel
;
M:
stdin
cancel-operation
[
size>>
]
[
control>>
]
bi
[
cancel-operation
]
bi@
;