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
Converts an async interface class to a blocking one by including a special class base. Only implemented for methods but property support can be easily added.
Also propagates the type information. The new blocking functions will take the exact same argument types and return the same types. This is implemented using ParamSpec so it is has to wait until the Jedi auto completions adds ParamSpec support.
The idea is to have less code duplication between async and blocking code. With such adapter only the async interfaces would have to be implemented.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can be found in commit ca238e6.
Converts an async interface class to a blocking one by including a special class base. Only implemented for methods but property support can be easily added.
Also propagates the type information. The new blocking functions will take the exact same argument types and return the same types. This is implemented using ParamSpec so it is has to wait until the Jedi auto completions adds ParamSpec support.
The idea is to have less code duplication between async and blocking code. With such adapter only the async interfaces would have to be implemented.
Beta Was this translation helpful? Give feedback.
All reactions