https://github.com/phoe/everblocking-stream
A stream that always blocks and never has data available.
https://github.com/phoe/everblocking-stream
Last synced: 4 months ago
JSON representation
A stream that always blocks and never has data available.
- Host: GitHub
- URL: https://github.com/phoe/everblocking-stream
- Owner: phoe
- Created: 2018-09-22T15:22:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T15:22:58.000Z (almost 8 years ago)
- Last Synced: 2025-01-06T03:24:00.763Z (over 1 year ago)
- Language: Common Lisp
- Size: 0 Bytes
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EVERBLOCKING-STREAM
```
(make-instance 'everblocking-stream:everblocking-stream)
```
The created stream returns `NIL` on calls to `CL:LISTEN`, `CL:READ-CHAR-NO-HANG`
and `CL:CLEAR-INPUT`, and blocks on `CL:READ-CHAR`, `CL:READ-LINE` and
`CL:PEEK-CHAR`.
Usage: mocking streams belonging to inactive network sockets for testing
purposes.
## License
Public domain.