@@ -12,7 +12,7 @@ by individually sending a (RESTful) HTTP API request to some third party API
1212for each record. Estimating each call to take around ` 0.3s ` means that having
1313` 10000 ` users processed sequentially, you would have to wait around 50 minutes
1414for all jobs to complete. This works perfectly fine for a small number of
15- operations, but keeping thousands of jobs in memory at once may easly take up
15+ operations, but keeping thousands of jobs in memory at once may easily take up
1616all resources on your side.
1717Instead, you can use this library to stream your arbitrarily large input list
1818as individual records to a non-blocking (async) transformation handler. It uses
@@ -141,7 +141,7 @@ also takes care of mangaging streaming throughput and back-pressure.
141141The transformation handler can be any non-blocking (async) callable that uses
142142[ promises] ( #promises ) to signal its eventual results. This callable receives
143143a single data argument as passed to the writable side and must return a
144- promise. A succesful fulfillment value will be forwarded to the readable end
144+ promise. A successful fulfillment value will be forwarded to the readable end
145145of the stream, while an unsuccessful rejection value will emit an ` error `
146146event and then ` close() ` the stream.
147147
@@ -306,7 +306,7 @@ passed through its transformation handler which is responsible for processing
306306and transforming this data (see above for more details).
307307
308308The ` Transformer ` takes care of passing data you pass on its writable side to
309- the transformation handler argument and forwarding resuling data to it
309+ the transformation handler argument and forwarding resulting data to it
310310readable end.
311311Each operation may take some time to complete, but due to its async nature you
312312can actually start any number of (queued) operations. Once the concurrency limit
@@ -341,7 +341,7 @@ $transformer->write('http://example.com/');
341341```
342342
343343This handler receives a single data argument as passed to the writable side
344- and must return a promise. A succesful fulfillment value will be forwarded to
344+ and must return a promise. A successful fulfillment value will be forwarded to
345345the readable end of the stream, while an unsuccessful rejection value will
346346emit an ` error ` event, try to ` cancel() ` all pending operations and then
347347` close() ` the stream.
0 commit comments