fix `peek-string-evt' and related docs
Closes PR 11748
This commit is contained in:
parent
9cc7333fa9
commit
9325fe0f25
|
@ -689,13 +689,15 @@ Like @racket[read-line-evt], but returns a byte string instead of a
|
||||||
string.}
|
string.}
|
||||||
|
|
||||||
@defproc*[([(peek-bytes-evt [k exact-nonnegative-integer?] [skip exact-nonnegative-integer?]
|
@defproc*[([(peek-bytes-evt [k exact-nonnegative-integer?] [skip exact-nonnegative-integer?]
|
||||||
[progress evt?] [in input-port?]) evt?]
|
[progress (or/c evt? #f)] [in input-port?]) evt?]
|
||||||
[(peek-bytes!-evt [bstr (and/c bytes? (not/c immutable?))] [skip exact-nonnegative-integer?]
|
[(peek-bytes!-evt [bstr (and/c bytes? (not/c immutable?))] [skip exact-nonnegative-integer?]
|
||||||
[progress (or/c evt? #f)] [in input-port?]) evt?]
|
[progress (or/c evt? #f)] [in input-port?]) evt?]
|
||||||
[(peek-bytes-avail!-evt [bstr (and/c bytes? (not/c immutable?))] [skip exact-nonnegative-integer?]
|
[(peek-bytes-avail!-evt [bstr (and/c bytes? (not/c immutable?))] [skip exact-nonnegative-integer?]
|
||||||
[progress (or/c evt? #f)] [in input-port?]) evt?]
|
[progress (or/c evt? #f)] [in input-port?]) evt?]
|
||||||
[(peek-string-evt [k exact-nonnegative-integer?] [in input-port?]) evt?]
|
[(peek-string-evt [k exact-nonnegative-integer?] [skip exact-nonnegative-integer?]
|
||||||
[(peek-string!-evt [str (and/c string? (not/c immutable?))] [in input-port?]) evt?])]{
|
[progress (or/c evt? #f)] [in input-port?]) evt?]
|
||||||
|
[(peek-string!-evt [str (and/c string? (not/c immutable?))] [skip exact-nonnegative-integer?]
|
||||||
|
[progress (or/c evt? #f)] [in input-port?]) evt?])]{
|
||||||
|
|
||||||
Like the @racket[read-...-evt] functions, but for peeking. The
|
Like the @racket[read-...-evt] functions, but for peeking. The
|
||||||
@racket[skip] argument indicates the number of bytes to skip, and
|
@racket[skip] argument indicates the number of bytes to skip, and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user