io.backend: fix docs to show nanoseconds instead of micros.

db4
John Benediktsson 2012-08-01 12:08:18 -07:00
parent caf4e677c7
commit 1a3e8a2994
3 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ M: unix (wait-to-write) ( port -- )
dup handle>> dup check-disposed drain
dup [ wait-for-port ] [ 2drop ] if ;
M: unix io-multiplex ( ms/f -- )
M: unix io-multiplex ( nanos -- )
mx get-global wait-for-events ;
! On Unix, you're not supposed to set stdin to non-blocking

View File

@ -2,8 +2,8 @@ USING: help.markup help.syntax io io.backend strings
byte-arrays ;
HELP: io-multiplex
{ $values { "us" "a non-negative integer" } }
{ $contract "Waits up to " { $snippet "us" } " microseconds for pending I/O requests to complete." } ;
{ $values { "nanos" "a non-negative integer" } }
{ $contract "Waits up to " { $snippet "nanos" } " nanoseconds for pending I/O requests to complete." } ;
HELP: init-io
{ $contract "Initializes the I/O system. Called on startup." } ;

View File

@ -19,7 +19,7 @@ HOOK: init-stdio io-backend ( -- )
[ utf8 <encoder> output-stream set-global ]
[ utf8 <encoder> error-stream set-global ] tri* ;
HOOK: io-multiplex io-backend ( us -- )
HOOK: io-multiplex io-backend ( nanos -- )
HOOK: normalize-directory io-backend ( path -- path' )