Better name and docs for the 'nonBlockingReads' facility

This commit is contained in:
Zahary Karadjov 2020-05-07 12:12:46 +03:00
commit dd63bbfd1c
No known key found for this signature in database
GPG key ID: C8936F8A3073D609
3 changed files with 18 additions and 18 deletions

View file

@ -139,8 +139,8 @@ procSuite "input stream":
test "non-blocking reads":
let s = fileInput(asciiTableFile, pageSize = 20)
if s.readable:
s.nonBlockingReads:
check s.readAll.len == 20
s.withReadableRange(20, r):
check r.readAll.len == 20
check s.readable
test "simple":