File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ Thus, all tests that make API calls will import and use the `ClientHybrid`.
35
35
36
36
As an example, consider the user requesting to call ` fetch_aes() ` using the ` ClientHybrid ` :
37
37
38
- - The ` ClientHybrid ` class is initialized as a context manager, the same as you would with a ` Client ` .
39
- - The ` fetch_aes() ` method is called on the ` ClientHybrid ` .
40
- - The sync method of ` fetch_aes() ` is called on an internally held ` SyncClient ` class.
41
- - The async method of ` fetch_aes() ` is called on the ` Client ` itself.
42
- - The result, if reconstructable or comparable, is checked to ensure that both returned objects are the same.
43
- - The result of the async method call is returned as the final value.
38
+ 1 . The ` ClientHybrid ` class is initialized as a context manager, the same as you would with a ` Client ` .
39
+ 2 . The ` fetch_aes() ` method is called on the ` ClientHybrid ` .
40
+ 3 . The sync method of ` fetch_aes() ` is called on an internally held ` SyncClient ` class.
41
+ 4 . The async method of ` fetch_aes() ` is called on the ` Client ` itself.
42
+ 5 . The result, if reconstructable or comparable, is checked to ensure that both returned objects are the same.
43
+ 6 . The result of the async method call is returned as the final value.
44
44
45
45
This approach, although loop blocking in nature, ensures that the results from both the ` Client ` and ` SyncClient ` are the same.
46
46
You can’t perform that action at this time.
0 commit comments