Next Previous Up Top Contents Index

5.11 The STREAMS module

stream-input-available?

Open generic function

Summary

Tests if an input stream can be read.

Signature

stream-input-available? input-stream => available? 

Arguments

input-stream
An instance of <stream>.

Values

available?
An instance of <boolean>.

Library

io

Module

streams

Description

Returns #t if input-stream would not block on read-element, otherwise it returns #f.

This function differs from stream-at-end?. When stream-input-available? returns #t, read-element will not block, but it may detect that it is at the end of the stream's source, and consequently inspect the on-end-of-stream argument to determine how to handle the end of stream.

See also

read-element, page 44

stream-at-end?, page 94


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index