set-timeout ( dt/f obj -- )
I/O timeout protocol

Prev:timeout ( obj -- dt/f )
Next:cancel-operation ( obj -- )


Vocabulary
io.timeouts

Inputs
dt/fa duration or f
objan object


Outputs
None

Generic word contract
Sets an object's timeout.

Examples
Waits five seconds for a process that sleeps for ten seconds:
USING: calendar io.launcher io.timeouts kernel ; "sleep 10" >process 5 seconds over set-timeout run-process
Process was killed as a result of a call to kill-process, or a timeout


Definition


Methods