File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ So, you have to turn you function into async one.
34
34
And all callers of this function in async functions. And all their callers.
35
35
36
36
This is really hard to model.
37
- When you code has two types of uncomposable
37
+ When your code has two types of uncomposable
38
38
functions you increase your mental complexity by extreme levels.
39
39
40
40
Instead, you can use ``Future `` container,
@@ -54,7 +54,7 @@ it allows you to model async interactions in a sync manner:
54
54
... return Future(first()).bind_awaitable(second)
55
55
56
56
Now we can compose async functions and maintaining a sync context!
57
- It is also possible run a ``Future ``
57
+ It is also possible to run a ``Future ``
58
58
with regular tools like ``asyncio.run `` or ``anyio.run ``:
59
59
60
60
.. code :: python
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ It might be later used with multiple values:
113
113
114
114
>> > assert pipeline(2 ) == ' 2B'
115
115
116
- It is also might be useful to compose containers together:
116
+ It also might be useful to compose containers together:
117
117
118
118
.. code :: python
119
119
You can’t perform that action at this time.
0 commit comments