You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was a chore indeed. A second pair of eyes would be welcome to make
sure I haven't mixed something up.
---------
Co-authored-by: František Nesveda <[email protected]>
which allows you to work with the Apify API in an asynchronous way, using the standard `async`/`await` syntax [offered by Python](https://docs.python.org/3/library/asyncio-task.html).
222
222
223
-
For example, to run an actor and asynchronously stream its log while it's running, you can use this snippet:
223
+
For example, to run an Actor and asynchronously stream its log while it's running, you can use this snippet:
224
224
225
225
```python
226
226
from apify_client import ApifyClientAsync
@@ -258,7 +258,7 @@ please refer to the official Python [documentation on logging](https://docs.pyth
258
258
259
259
### Convenience functions and options
260
260
261
-
Some actions can't be performed by the API itself, such as indefinite waiting for an actor run to finish (because of network timeouts).
261
+
Some actions can't be performed by the API itself, such as indefinite waiting for an Actor run to finish (because of network timeouts).
262
262
The client provides convenient [`call()`](/reference/class/ActorClient#call)
263
263
and [`wait_for_finish()`](/reference/class/ActorClient#wait_for_finish) methods that do that.
264
264
@@ -335,7 +335,7 @@ Instead of the parsed resource, they return a raw, context-managed
335
335
which has to be consumed using the `with` keyword,
336
336
and automatically gets closed once you exit the `with` block, preventing memory leaks and unclosed connections.
337
337
338
-
For example, to consume an actor run log in a streaming fashion, you can use this snippet:
338
+
For example, to consume an Actor run log in a streaming fashion, you can use this snippet:
339
339
340
340
```python
341
341
with apify_client.run('MY-RUN-ID').log().stream() as log_stream:
0 commit comments