Closed fredemmott closed 4 years ago
rawFooBlocking()
foo()
OS\
float $timeout_sec() = 0
?int $timeout_ns = null
write()
read()
$chunk = foo(); return $chunk;
@fredemmott merged this pull request in hhvm/hsl-experimental@872815fa37d58e1fe871c7b9f2d7ce9f2ef03b64.
rawFooBlocking()
->foo()
, matching theOS\
functionfloat $timeout_sec() = 0
->?int $timeout_ns = null
write()
; don't loop until the very endread()
, however given it's needed forread()
, I think it's best for consistency$chunk = foo(); return $chunk;
I saw while looking through the read implementations