moonbridge
diff reference.txt @ 219:e53da349fd8f
Clarified nil/false return values of poll function and wait_nb method
author | jbe |
---|---|
date | Tue Jun 23 02:10:59 2015 +0200 (2015-06-23) |
parents | 35ea31e45b43 |
children | 6c02564342fe |
line diff
1.1 --- a/reference.txt Tue Jun 23 02:07:26 2015 +0200 1.2 +++ b/reference.txt Tue Jun 23 02:10:59 2015 +0200 1.3 @@ -318,7 +318,8 @@ 1.4 which corresponds to the respective positive signal number. 1.5 1.6 The method :wait_nb() is the same as :wait(), except that it does not block but 1.7 -returns nil if the child process has not terminated yet. 1.8 +returns false (plus a notice as second return value) if the child process has 1.9 +not terminated yet. 1.10 1.11 The method :wait_call() is the same as :wait() but calls waitfunc() (in an 1.12 infinite loop) as long as the process is still running. 1.13 @@ -381,9 +382,9 @@ 1.14 which does evaluate to true. If a set is nil, it is treated as being empty. 1.15 1.16 Returns true when at least one file descriptor or handle is ready for reading 1.17 -or writing respectively. Returns false (as first return value) plus a status 1.18 -message (as second return value) in case of timeout or when a signal was 1.19 -received. 1.20 +or writing respectively. Returns false (plus a notice as second return value) 1.21 +in case of timeout. Returns nil (plus a notice as second return value) if a 1.22 +signal was received during waiting. 1.23 1.24 1.25 ### moonbridge_io.tcpconnect(hostname, port)