Go to the first, previous, next, last section, table of contents.


readStreamLine

Function: readStreamLine { stream -> value who }
file: job.t
package: muf
status: alpha

This function accepts one parameter, which must be a message stream, and returns the next value from that message stream, beneath the author of the message.

If no input is available, the job blocks until something arrives.

The 'who' value should normally be the value of @$s.actingUser in the job sending the value at the time the value was sent. In the case of message streams fed from the net, there is no such @$s.actingUser value in general (since any process anywhere on the Internet might have sent the value) so the originating socket is supplied instead. (It is possible to send other values using rootWriteStream, but it is not clear this has any legitimate purpose other than preserving the above information when redirecting a message.)


Go to the first, previous, next, last section, table of contents.