mirror of
https://github.com/danog/byte-stream.git
synced 2024-11-26 11:54:54 +01:00
Update shared docs and make resource streams available as document
This commit is contained in:
parent
957d190034
commit
dae37a666c
@ -1 +1 @@
|
||||
Subproject commit 3cd8f565aa502ae975b06e4d856f4034db729504
|
||||
Subproject commit e236a6faae29bb4aa675093a1c607e448913e5b3
|
@ -1,3 +1,5 @@
|
||||
# Resource Streams
|
||||
|
||||
---
|
||||
title: Resource Streams
|
||||
permalink: /resource-streams
|
||||
---
|
||||
This package abstracts PHP's stream resources with `ResourceInputStream` and `ResourceOutputStream`. They automatically set the passed resource to non-blocking and allow reading and writing like any other `InputStream` / `OutputStream`. They also handle backpressure automatically by disabling the read watcher in case there's no read request and only activate a write watcher if the underlying write buffer is already full, which makes them very efficient.
|
||||
|
Loading…
Reference in New Issue
Block a user