Visit Mozilla.org

nsIInputStream:isNonBlocking

From MDC

« XPCOM API Reference

[edit] Summary

This method returns true if the stream is non-blocking.

 boolean isNonBlocking();

[edit] Remarks

A non-blocking stream may throw NS_BASE_STREAM_WOULD_BLOCK when read if data is not immediately available for reading.