AsyncInterfaceWrapper

toloka.util.async_utils.AsyncInterfaceWrapper | Source code

AsyncInterfaceWrapper(self, wrapped: TypeVar('T'))

Wrap arbitrary object to be able to await any of it's methods even if it's sync.

Note, that it doesn't provide concurrency by itself! It just allow to treat sync and async callables in the same way.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming