]> gitweb.factorcode.org Git - factor.git/commitdiff
io.backend: fix docs to show nanoseconds instead of micros.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 1 Aug 2012 19:08:18 +0000 (12:08 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 1 Aug 2012 19:08:18 +0000 (12:08 -0700)
basis/io/backend/unix/unix.factor
core/io/backend/backend-docs.factor
core/io/backend/backend.factor

index 60890b6fc09c1222ffdefe1dc59bfb03d36534fc..ad2e6e1ff2ae06576c151b58232559a41f12afa1 100755 (executable)
@@ -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
index e129a9b0bc356293c59e3f4e6b0010e81d3f9b9c..6ad01ebb9acaafb1c6fe480d1ee21d5a23a67f09 100644 (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." } ;
index ee50500754cb329f7b4c75c3229ef32f20b03c56..45425653e31d06ef890431edea2776b732b7884f 100644 (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' )